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

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: Correct handling of 0.0fps frame rate sources 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_track.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a941b59b62e4bfe67304686133bdefb8c4239993 100644
--- a/content/renderer/media/media_stream_track.h
+++ b/content/renderer/media/media_stream_track.h
@@ -8,6 +8,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
+#include "base/threading/thread_checker.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
@@ -34,6 +35,9 @@ 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);
+ virtual bool GetMutedState(void) const;
+
// TODO(xians): Make this pure virtual when Stop[Track] has been
// implemented for remote audio tracks.
virtual void Stop();
@@ -45,9 +49,14 @@ class CONTENT_EXPORT MediaStreamTrack
protected:
scoped_refptr<webrtc::MediaStreamTrackInterface> track_;
+ // Set to true if the owner MediaStreamSource is not delivering frames.
+ bool muted_state_;
+
private:
const bool is_local_track_;
+ base::ThreadChecker thread_checker_;
+
DISALLOW_COPY_AND_ASSIGN(MediaStreamTrack);
};
« no previous file with comments | « no previous file | content/renderer/media/media_stream_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698