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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.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: Link to crbug from TODO comments. Enforced ownership transfer using scoped_ptr. 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
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index eddbf277193e6afd8034795b9be01c98901d1a15..e3b1dfae1de71696b7ab17236bba2bf3d8438dfe 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -859,6 +859,7 @@ PepperPluginDelegateImpl::CreateAudioOutput(
uint32_t sample_count,
webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) {
return PepperPlatformAudioOutputImpl::Create(
+ render_view_->GetRoutingID(),
static_cast<int>(sample_rate), static_cast<int>(sample_count), client);
}
@@ -869,6 +870,7 @@ PepperPluginDelegateImpl::CreateAudioInput(
uint32_t sample_count,
webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) {
return PepperPlatformAudioInputImpl::Create(
+ render_view_->GetRoutingID(),
AsWeakPtr(), device_id, static_cast<int>(sample_rate),
static_cast<int>(sample_count), client);
}

Powered by Google App Engine
This is Rietveld 408576698