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

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: 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
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 a941b59b62e4bfe67304686133bdefb8c4239993..c029ff03067374ad71afed4df1b6dd3c1c145516 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"
@@ -35,9 +35,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();
@@ -49,9 +46,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_;
@@ -62,4 +56,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_

Powered by Google App Engine
This is Rietveld 408576698