From e0414ed4370f69508a037631300fd9f3db434891 Mon Sep 17 00:00:00 2001 From: "abarth@chromium.org" Date: Fri, 17 Dec 2010 21:55:40 +0000 Subject: Add LaunchSelLdr and UrandomFD to PPAPI LaunchSelLdr just calls through to the webkit_glue backend, which calls through a bunch more layers of abstraction for us. UrandomFD returns the file descriptor of /dev/urandom (on Posix), which NaCl uses for some purpose by can't get directly because of the sandbox. Review URL: http://codereview.chromium.org/6023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69578 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/c/private/ppb_nacl_util_private.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'ppapi/c') diff --git a/ppapi/c/private/ppb_nacl_util_private.h b/ppapi/c/private/ppb_nacl_util_private.h index 3a8354e..462477f 100644 --- a/ppapi/c/private/ppb_nacl_util_private.h +++ b/ppapi/c/private/ppb_nacl_util_private.h @@ -11,7 +11,19 @@ #define PPB_NACLUTIL_PRIVATE_INTERFACE "PPB_NaClUtil(Private);0.1" struct PPB_NaClUtil_Private { - int32_t (*LaunchSelLdr)(PP_Resource file_io); + // 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 and will write the + // nacl::Handle of the created process to |nacl_process_handle|. Finally, + // the function will write the process ID of the created process to + // |nacl_process_id|. + bool (*LaunchSelLdr)(const char* alleged_url, int socket_count, + void* imc_handles, void* nacl_process_handle, + int* nacl_process_id); + + // On POSIX systems, this function returns the file descriptor of + // /dev/urandom. On non-POSIX systems, this function returns 0. + int (*UrandomFD)(void); }; #endif // PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ -- cgit v1.1