Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Unified Diff: webkit/media/buffered_data_source.h

Issue 10735016: Collapse HTTP and non-HTTP codepaths into single methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/media/buffered_data_source.cc » ('j') | webkit/media/buffered_data_source.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/buffered_data_source.h
diff --git a/webkit/media/buffered_data_source.h b/webkit/media/buffered_data_source.h
index 5e1af54a764d38ea2f1b731af13c776a642f460a..206d6b1ae7874418eeaffd6b9ae7d301427750a1 100644
--- a/webkit/media/buffered_data_source.h
+++ b/webkit/media/buffered_data_source.h
@@ -113,28 +113,17 @@ class BufferedDataSource : public media::DataSource {
// Calls |initialize_cb_| and reset it.
void DoneInitialization_Locked(media::PipelineStatus status);
- // Callback method for |loader_| if URL for the resource requested is using
- // HTTP protocol. This method is called when response for initial request is
- // received.
- void HttpInitialStartCallback(BufferedResourceLoader::Status status);
-
- // Callback method for |loader_| if URL for the resource requested is using
- // a non-HTTP protocol, e.g. local files. This method is called when response
- // for initial request is received.
- void NonHttpInitialStartCallback(BufferedResourceLoader::Status status);
-
- // Callback method to be passed to BufferedResourceLoader during range
- // request. Once a resource request has started, this method will be called
- // with the error code. This method will be executed on the thread
- // BufferedResourceLoader lives, i.e. render thread.
+ // BufferedResourceLoader::Start() callback for initial load.
+ void StartCallback(BufferedResourceLoader::Status status);
+
+ // BufferedResourceLoader::Start() callback for subsequent loads (i.e.,
+ // when accessing ranges that are outside initial buffered region).
Ami GONE FROM CHROMIUM 2012/07/09 03:30:57 Old comment made promises about thread of executio
scherkus (not reviewing) 2012/07/10 18:37:27 BRL lives + executes on render thread as do the ca
void PartialReadStartCallback(BufferedResourceLoader::Status status);
- // Read callback for BufferedResourceLoader.
+ // BufferedResourceLoader callbacks.
void ReadCallback(BufferedResourceLoader::Status status, int bytes_read);
-
- // Loading and progress callbacks for HTTP resources.
- void HttpLoadingCallback(BufferedResourceLoader::LoadingState state);
- void HttpProgressCallback(int64 position);
+ void LoadingCallback(BufferedResourceLoader::LoadingState state);
+ void ProgressCallback(int64 position);
void UpdateHostState_Locked();
« no previous file with comments | « no previous file | webkit/media/buffered_data_source.cc » ('j') | webkit/media/buffered_data_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698