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

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

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 | « content/renderer/media/webrtc_audio_capturer.cc ('k') | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_renderer.h
diff --git a/content/renderer/media/webrtc_audio_renderer.h b/content/renderer/media/webrtc_audio_renderer.h
index 164b8f1f86958152ac24e575371d9802ee4cc063..970cdf2e9172e5968f76ca8420b69084eb58e2e6 100644
--- a/content/renderer/media/webrtc_audio_renderer.h
+++ b/content/renderer/media/webrtc_audio_renderer.h
@@ -22,7 +22,6 @@
#include "media/base/audio_pull_fifo.h"
#include "media/base/audio_renderer_sink.h"
#include "media/base/channel_layout.h"
-#include "media/base/output_device.h"
#include "third_party/WebKit/public/platform/WebMediaStream.h"
namespace webrtc {
@@ -37,8 +36,7 @@ class WebRtcAudioRendererSource;
// for connecting WebRtc MediaStream with the audio pipeline.
class CONTENT_EXPORT WebRtcAudioRenderer
: NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback),
- NON_EXPORTED_BASE(public MediaStreamAudioRenderer),
- NON_EXPORTED_BASE(public media::OutputDevice) {
+ NON_EXPORTED_BASE(public MediaStreamAudioRenderer) {
public:
// This is a little utility class that holds the configured state of an audio
// stream.
@@ -119,16 +117,12 @@ class CONTENT_EXPORT WebRtcAudioRenderer
void Pause() override;
void Stop() override;
void SetVolume(float volume) override;
- media::OutputDevice* GetOutputDevice() override;
+ media::OutputDeviceInfo GetOutputDeviceInfo() override;
base::TimeDelta GetCurrentRenderTime() const override;
bool IsLocalRenderer() const override;
-
- // media::OutputDevice implementation
void SwitchOutputDevice(const std::string& device_id,
const url::Origin& security_origin,
- const media::SwitchOutputDeviceCB& callback) override;
- media::AudioParameters GetOutputParameters() override;
- media::OutputDeviceStatus GetDeviceStatus() override;
+ const media::OutputDeviceStatusCB& callback) override;
// Called when an audio renderer, either the main or a proxy, starts playing.
// Here we maintain a reference count of how many renderers are currently
« no previous file with comments | « content/renderer/media/webrtc_audio_capturer.cc ('k') | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698