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

Unified Diff: media/base/renderer.h

Issue 1894073002: Revert of Allow muting/unmuting audio through media track API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-tracks6
Patch Set: Rebased Created 4 years, 8 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 | « media/base/pipeline_impl.cc ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer.h
diff --git a/media/base/renderer.h b/media/base/renderer.h
index bedbb3496e873a31d1194dcc84c5808e68651068..89e349a9350d1c44564690a84bdc2391589e78d2 100644
--- a/media/base/renderer.h
+++ b/media/base/renderer.h
@@ -5,8 +5,6 @@
#ifndef MEDIA_BASE_RENDERER_H_
#define MEDIA_BASE_RENDERER_H_
-#include <vector>
-
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -18,7 +16,6 @@
namespace media {
-class DemuxerStream;
class DemuxerStreamProvider;
class VideoFrame;
@@ -80,22 +77,6 @@ class MEDIA_EXPORT Renderer {
// Returns whether |this| renders video.
virtual bool HasVideo() = 0;
- // TODO(servolk,wolenetz): Enable media track handling in mojo, then make sure
- // OnEnabledAudioStreamsChanged and OnSelectedVideoStreamChanged are
- // implemented by all media renderers and make them pure virtual here.
- // crbug.com/604083
-
- // Notifies renderer that the set of enabled audio streams/tracks has changed.
- // The input parameter |enabledAudioStreams| might be empty, which means that
- // all audio tracks should be disabled/muted.
- virtual void OnEnabledAudioStreamsChanged(
- const std::vector<const DemuxerStream*>& enabledAudioStreams) {}
-
- // Notifies renderer that the selected video stream has changed. The input
- // parameter |selectedVideoStream| can be null, which means video is disabled.
- virtual void OnSelectedVideoStreamChanged(
- const DemuxerStream* selectedVideoStream) {}
-
private:
DISALLOW_COPY_AND_ASSIGN(Renderer);
};
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698