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

Unified Diff: ppapi/c/private/ppb_nacl_private.h

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, 6 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: ppapi/c/private/ppb_nacl_private.h
===================================================================
--- ppapi/c/private/ppb_nacl_private.h (revision 143480)
+++ ppapi/c/private/ppb_nacl_private.h (working copy)
@@ -15,17 +15,21 @@
struct PPB_NaCl_Private {
// This function launches NaCl's sel_ldr process. On success, the function
// returns true, otherwise it returns false. When it returns true, it will
- // write |socket_count| nacl::Handles to imc_handles. Unless
+ // write |socket_count| nacl::Handles to imc_handles. |ipc_channel_handle|
+ // will point to information needed to start the IPC proxy. Unless
// EnableBackgroundSelLdrLaunch is called, this method must be invoked from
// the main thread.
PP_Bool (*LaunchSelLdr)(PP_Instance instance,
const char* alleged_url,
int socket_count,
- void* imc_handles);
+ void* imc_handles,
+ void** ipc_channel_handle);
// This function starts the PPAPI proxy so the nexe can communicate with the
- // browser's renderer process.
- PP_Bool (*StartPpapiProxy)(PP_Instance instance);
+ // browser's renderer process. |ipc_channel_handle| is the pointer returned
+ // by the call to LaunchSelLdr.
+ PP_Bool (*StartPpapiProxy)(PP_Instance instance,
+ void* ipc_channel_handle);
// On POSIX systems, this function returns the file descriptor of
// /dev/urandom. On non-POSIX systems, this function returns 0.
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | ppapi/native_client/src/trusted/plugin/nacl_entry_points.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698