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

Unified Diff: media/base/demuxer.h

Issue 212803004: Separate DemuxerHost from DataSourceHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 9b671f007cb65e2ed9b3eda6157c1ca0db6a2ed5..f6c7517e8c007e53871ca6ee364da0177142dbd7 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -17,8 +17,12 @@ namespace media {
class TextTrackConfig;
-class MEDIA_EXPORT DemuxerHost : public DataSourceHost {
+class MEDIA_EXPORT DemuxerHost {
public:
+ // Notify the host that time range [start,end] has been buffered.
+ virtual void AddBufferedTimeRange(base::TimeDelta start,
+ base::TimeDelta end) = 0;
+
// Sets the duration of the media in microseconds.
// Duration may be kInfiniteDuration() if the duration is not known.
virtual void SetDuration(base::TimeDelta duration) = 0;
@@ -31,9 +35,6 @@ class MEDIA_EXPORT DemuxerHost : public DataSourceHost {
virtual void AddTextStream(DemuxerStream* text_stream,
const TextTrackConfig& config) = 0;
- // Remove |text_stream| from the presentation.
- virtual void RemoveTextStream(DemuxerStream* text_stream) = 0;
scherkus (not reviewing) 2014/03/26 21:50:12 what happened to this method?
sandersd (OOO until July 31) 2014/03/26 22:11:12 It's never called, but this is the right place for
-
protected:
virtual ~DemuxerHost();
};
« no previous file with comments | « media/base/data_source.h ('k') | media/base/pipeline.h » ('j') | media/base/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698