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

Unified Diff: media/base/data_source.h

Issue 10451049: Track buffered byte ranges correctly in media::Pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 | media/base/demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_source.h
diff --git a/media/base/data_source.h b/media/base/data_source.h
index a394a038853bb00b07495210c5c56c2712f732a2..7ce965fd97a3d828a4bd30207a833acff0cb093c 100644
--- a/media/base/data_source.h
+++ b/media/base/data_source.h
@@ -18,9 +18,8 @@ class MEDIA_EXPORT DataSourceHost {
// Set the total size of the media file.
virtual void SetTotalBytes(int64 total_bytes) = 0;
- // Sets the total number of bytes that are buffered on the client and ready to
- // be played.
- virtual void SetBufferedBytes(int64 buffered_bytes) = 0;
+ // Notify the host that byte range [start,end] has been buffered.
+ virtual void AddBufferedByteRange(int64 start, int64 end) = 0;
// Sets the flag to indicate current network activity.
virtual void SetNetworkActivity(bool is_downloading_data) = 0;
« no previous file with comments | « no previous file | media/base/demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698