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

Unified Diff: webkit/glue/plugins/pepper_plugin_module.cc

Issue 4985001: Initial audio implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « webkit/glue/plugins/pepper_plugin_module.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_plugin_module.cc
===================================================================
--- webkit/glue/plugins/pepper_plugin_module.cc (revision 67903)
+++ webkit/glue/plugins/pepper_plugin_module.cc (working copy)
@@ -354,10 +354,12 @@
// static
scoped_refptr<PluginModule> PluginModule::CreateOutOfProcessModule(
MessageLoop* ipc_message_loop,
+ base::ProcessHandle plugin_process_handle,
const IPC::ChannelHandle& handle,
base::WaitableEvent* shutdown_event) {
scoped_refptr<PluginModule> lib(new PluginModule);
- if (!lib->InitForOutOfProcess(ipc_message_loop, handle, shutdown_event))
+ if (!lib->InitForOutOfProcess(ipc_message_loop, plugin_process_handle,
+ handle, shutdown_event))
return NULL;
return lib;
}
@@ -405,13 +407,14 @@
}
bool PluginModule::InitForOutOfProcess(MessageLoop* ipc_message_loop,
+ base::ProcessHandle remote_process,
const IPC::ChannelHandle& handle,
base::WaitableEvent* shutdown_event) {
const PPB_Var_Deprecated* var_interface =
reinterpret_cast<const PPB_Var_Deprecated*>(
GetInterface(PPB_VAR_DEPRECATED_INTERFACE));
- dispatcher_.reset(new pp::proxy::HostDispatcher(var_interface,
- pp_module(), &GetInterface));
+ dispatcher_.reset(new pp::proxy::HostDispatcher(
+ remote_process, var_interface, pp_module(), &GetInterface));
#if defined(OS_POSIX)
// If we received a ChannelHandle, register it now.
@@ -427,7 +430,6 @@
bool init_result = false;
dispatcher_->Send(new PpapiMsg_InitializeModule(pp_module(), &init_result));
-
if (!init_result) {
// TODO(brettw) does the module get unloaded in this case?
dispatcher_.reset();
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_module.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698