| Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
|
| ===================================================================
|
| --- content/renderer/pepper/pepper_plugin_delegate_impl.cc (revision 133072)
|
| +++ content/renderer/pepper/pepper_plugin_delegate_impl.cc (working copy)
|
| @@ -267,6 +267,28 @@
|
| return module;
|
| }
|
|
|
| +void PepperPluginDelegateImpl::CreateHostDispatcher(
|
| + const FilePath& plugin_path,
|
| + int plugin_child_id,
|
| + base::ProcessHandle plugin_process_handle,
|
| + const std::string& channel_handle_name) {
|
| + 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);
|
|
|