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

Unified Diff: content/renderer/media/audio_device_factory.cc

Issue 10836025: Part 1: Plumb render view ID to render host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 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
Index: content/renderer/media/audio_device_factory.cc
diff --git a/content/renderer/media/audio_device_factory.cc b/content/renderer/media/audio_device_factory.cc
index ad7968884e78c410b8e03094850e03da0efb7318..940bce487dc8b365b7f5188175c2518bb97bc912 100644
--- a/content/renderer/media/audio_device_factory.cc
+++ b/content/renderer/media/audio_device_factory.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "content/common/child_process.h"
+#include "content/renderer/media/audio_output_ipc_impl.h"
#include "content/renderer/media/audio_input_message_filter.h"
#include "content/renderer/media/audio_message_filter.h"
#include "media/audio/audio_input_device.h"
@@ -17,13 +18,14 @@ namespace content {
AudioDeviceFactory* AudioDeviceFactory::factory_ = NULL;
// static
-media::AudioRendererSink* AudioDeviceFactory::NewOutputDevice() {
+media::AudioRendererSink* AudioDeviceFactory::NewOutputDevice(
+ int render_view_id) {
media::AudioRendererSink* device = NULL;
if (factory_)
- device = factory_->CreateOutputDevice();
+ device = factory_->CreateOutputDevice(render_view_id);
return device ? device : new media::AudioOutputDevice(
- AudioMessageFilter::Get(),
+ new AudioOutputIPCImpl(render_view_id),
ChildProcess::current()->io_message_loop()->message_loop_proxy());
}

Powered by Google App Engine
This is Rietveld 408576698