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

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

Issue 6023003: Add LaunchSelLdr to PPAPI... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « no previous file | webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppb_nacl_util_private.h
===================================================================
--- ppapi/c/private/ppb_nacl_util_private.h (revision 69569)
+++ ppapi/c/private/ppb_nacl_util_private.h (working copy)
@@ -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_
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698