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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
===================================================================
--- content/renderer/pepper/pepper_plugin_delegate_impl.cc (revision 134969)
+++ content/renderer/pepper/pepper_plugin_delegate_impl.cc (working copy)
@@ -267,6 +267,28 @@
return module;
}
+void PepperPluginDelegateImpl::CreatePepperHostDispatcher(
+ const FilePath& plugin_path,
+ int plugin_child_id,
+ base::ProcessHandle plugin_process_handle,
+ const IPC::ChannelHandle& channel_handle) {
+ webkit::ppapi::PluginModule* module =
+ PepperPluginRegistry::GetInstance()->GetLiveModule(plugin_path);
+ scoped_refptr<PepperHungPluginFilter> hung_filter(
+ new PepperHungPluginFilter(plugin_path, render_view_->routing_id(),
+ plugin_child_id));
+ scoped_ptr<HostDispatcherWrapper> dispatcher(new HostDispatcherWrapper);
+ if (dispatcher->Init(
+ plugin_process_handle,
+ channel_handle.name,
+ module->pp_module(),
+ webkit::ppapi::PluginModule::GetLocalGetInterfaceFunc(),
+ GetPreferences(),
+ hung_filter.get())) {
+ module->InitAsProxied(dispatcher.release());
+ }
+}
+
scoped_refptr<PepperBrokerImpl> PepperPluginDelegateImpl::CreateBroker(
webkit::ppapi::PluginModule* plugin_module) {
DCHECK(plugin_module);

Powered by Google App Engine
This is Rietveld 408576698