Chromium Code Reviews| Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc |
| =================================================================== |
| --- content/renderer/pepper/pepper_plugin_delegate_impl.cc (revision 136022) |
| +++ 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, |
|
dmichael (off chromium)
2012/05/10 19:38:58
nit: I think the indent is off by 1
bbudge
2012/05/11 01:21:16
Done.
|
| + 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); |