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

Unified Diff: media/base/demuxer_stream.h

Issue 2199913002: Notify demux stream clients when a stream is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't pass DemuxerStream into the status callback Created 4 years, 4 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 | « chromecast/media/cma/base/demuxer_stream_for_test.cc ('k') | media/base/fake_demuxer_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer_stream.h
diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h
index 17f193f24acb06c420bd3f00f674da55778dd24f..c90de790abed2ab8c8e0119545b4e1979066bf49 100644
--- a/media/base/demuxer_stream.h
+++ b/media/base/demuxer_stream.h
@@ -102,9 +102,12 @@ class MEDIA_EXPORT DemuxerStream {
// reading data from a key frame preceeding the |timestamp|.
virtual void set_enabled(bool enabled, base::TimeDelta timestamp) = 0;
- using StreamRestartedCB =
- base::Callback<void(DemuxerStream*, base::TimeDelta)>;
- virtual void SetStreamRestartedCB(const StreamRestartedCB& cb) = 0;
+ // The StreamStatusChangeCB allows DemuxerStream clients to receive
+ // notifications about the stream being disabled or enabled.
+ // The first parameter indicates whether the stream is enabled or disabled.
+ // The second parameter is the playback position when the change occured.
+ using StreamStatusChangeCB = base::Callback<void(bool, base::TimeDelta)>;
+ virtual void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) = 0;
protected:
// Only allow concrete implementations to get deleted.
« no previous file with comments | « chromecast/media/cma/base/demuxer_stream_for_test.cc ('k') | media/base/fake_demuxer_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698