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

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

Issue 11166002: Plumb render view ID from audio-related code in renderer through IPCs to AudioRendererHost in brows… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/audio_device_factory.h ('k') | content/renderer/media/audio_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a6e62628926447db51bc83719833bdeb45b0d5fb 100644
--- a/content/renderer/media/audio_device_factory.cc
+++ b/content/renderer/media/audio_device_factory.cc
@@ -8,6 +8,7 @@
#include "content/common/child_process.h"
#include "content/renderer/media/audio_input_message_filter.h"
#include "content/renderer/media/audio_message_filter.h"
+#include "content/renderer/render_thread_impl.h"
#include "media/audio/audio_input_device.h"
#include "media/audio/audio_output_device.h"
@@ -17,13 +18,15 @@ namespace content {
AudioDeviceFactory* AudioDeviceFactory::factory_ = NULL;
// static
-media::AudioRendererSink* AudioDeviceFactory::NewOutputDevice() {
+media::AudioRendererSink* AudioDeviceFactory::NewOutputDevice(
+ int render_view_id) {
tommi (sloooow) - chröme 2012/10/16 09:17:07 Why don't we do the same for the input device? We
miu 2012/10/16 23:43:49 Done.
media::AudioRendererSink* device = NULL;
if (factory_)
- device = factory_->CreateOutputDevice();
+ device = factory_->CreateOutputDevice(render_view_id);
return device ? device : new media::AudioOutputDevice(
- AudioMessageFilter::Get(),
+ RenderThreadImpl::current()->audio_message_filter()->
+ CreateAudioOutputIPC(render_view_id),
ChildProcess::current()->io_message_loop()->message_loop_proxy());
}
« no previous file with comments | « content/renderer/media/audio_device_factory.h ('k') | content/renderer/media/audio_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698