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

Unified Diff: media/base/data_source.h

Issue 10581050: Ensure media's buffered ranges always have a range that includes currentTime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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_stream.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 037c645de38c3003879dc5135f390d10ac88a3b3..f2a6a17ae73b6e5453ac85739ec0cd429cd5daff 100644
--- a/media/base/data_source.h
+++ b/media/base/data_source.h
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
+#include "base/time.h"
#include "media/base/media_export.h"
namespace media {
@@ -19,7 +20,13 @@ class MEDIA_EXPORT DataSourceHost {
virtual void SetTotalBytes(int64 total_bytes) = 0;
// Notify the host that byte range [start,end] has been buffered.
+ // TODO(fischman): remove this method when demuxing is push-based instead of
+ // pull-based. http://crbug.com/131444
virtual void AddBufferedByteRange(int64 start, int64 end) = 0;
+
+ // Notify the host that time range [start,end] has been buffered.
+ virtual void AddBufferedTimeRange(base::TimeDelta start,
+ base::TimeDelta end) = 0;
};
class MEDIA_EXPORT DataSource : public base::RefCountedThreadSafe<DataSource> {
« no previous file with comments | « no previous file | media/base/demuxer_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698