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

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

Issue 509873002: Refactor MediaStreamTrack video onmute event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 6 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 | « 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 cf26a248122a4018244e5ba9b5711d342ad77cae..1a87a81d759fe3ee61f6f16782ecf31264eb9311 100644
--- a/content/renderer/media/media_stream_track.h
+++ b/content/renderer/media/media_stream_track.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_TRACK_EXTRA_DATA_H_
-#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_TRACK_EXTRA_DATA_H_
+#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_TRACK_H_
+#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_TRACK_H_
#include "base/callback.h"
#include "base/compiler_specific.h"
@@ -36,9 +36,6 @@ 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();
@@ -50,9 +47,6 @@ 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_;
@@ -63,4 +57,4 @@ class CONTENT_EXPORT MediaStreamTrack
} // namespace content
-#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_TRACK_EXTRA_DATA_H_
+#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_TRACK_H_
« 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