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

Unified Diff: webkit/glue/media/buffered_resource_loader.h

Issue 8224028: Numerous fixes to audio/video buffered resource loading. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fix nits Created 9 years, 2 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 | « webkit/glue/media/buffered_data_source_unittest.cc ('k') | webkit/glue/media/buffered_resource_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/buffered_resource_loader.h
diff --git a/webkit/glue/media/buffered_resource_loader.h b/webkit/glue/media/buffered_resource_loader.h
index a9a15208d4226607eb61bad248049f6c41ce3dae..1b6d55f325e8d4a99ea792840387a78351ad1680 100644
--- a/webkit/glue/media/buffered_resource_loader.h
+++ b/webkit/glue/media/buffered_resource_loader.h
@@ -54,9 +54,15 @@ class BufferedResourceLoader
// |kPositionNotSpecified| for not specified.
// |last_byte_position| - Last byte to be loaded,
// |kPositionNotSpecified| for not specified.
+ // |strategy| is the initial loading strategy to use.
+ // |bitrate| is the bitrate of the media, 0 if unknown.
+ // |playback_rate| is the current playback rate of the media.
BufferedResourceLoader(const GURL& url,
int64 first_byte_position,
int64 last_byte_position,
+ DeferStrategy strategy,
+ int bitrate,
+ float playback_rate,
media::MediaLog* media_log);
// Start the resource loading with the specified URL and range.
@@ -167,6 +173,7 @@ class BufferedResourceLoader
virtual ~BufferedResourceLoader();
private:
+ friend class BufferedDataSourceTest2;
friend class BufferedResourceLoaderTest;
// Updates the |buffer_|'s forward and backward capacities.
« no previous file with comments | « webkit/glue/media/buffered_data_source_unittest.cc ('k') | webkit/glue/media/buffered_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698