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

Unified Diff: content/renderer/media/media_stream_track.h

Issue 366243003: VideoTrackAdapter: Add passing frames monitor, notify MSVCS -> MSVTrack(s) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: content/renderer/media/media_stream_track.h
diff --git a/content/renderer/media/media_stream_track.h b/content/renderer/media/media_stream_track.h
index 456005d4d054284e2a999187c5375c171a468369..c50500dae08c5c0d9c81e9f4872be3cc21b508e2 100644
--- a/content/renderer/media/media_stream_track.h
+++ b/content/renderer/media/media_stream_track.h
@@ -34,6 +34,8 @@ class CONTENT_EXPORT MediaStreamTrack
// If a subclass overrides this method it has to call the base class.
virtual void SetEnabled(bool enabled);
+ virtual void SetMutedState(bool muted_state);
+
// TODO(xians): Make this pure virtual when Stop[Track] has been
// implemented for remote audio tracks.
virtual void Stop();
@@ -45,6 +47,9 @@ class CONTENT_EXPORT MediaStreamTrack
protected:
scoped_refptr<webrtc::MediaStreamTrackInterface> track_;
+ // The source can put this attribute to true if it's not delivering frames.
Henrik Grunell 2014/07/08 11:39:53 I think it should say "This will be set to true if
mcasas 2014/07/08 16:12:01 source -> MediaStreamSource. Rewritten.
+ bool muted_state_;
+
private:
const bool is_local_track_;
« no previous file with comments | « no previous file | content/renderer/media/media_stream_track.cc » ('j') | content/renderer/media/media_stream_video_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698