diff options
Diffstat (limited to 'webkit/plugins')
-rw-r--r-- | webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc b/webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc index 72dc76a..df937cb 100644 --- a/webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc +++ b/webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc @@ -4,21 +4,35 @@ #include "webkit/plugins/ppapi/ppb_nacl_util_private_impl.h" +#include "base/rand_util_c.h" #include "ppapi/c/private/ppb_nacl_util_private.h" +#include "webkit/glue/webkit_glue.h" namespace webkit { namespace ppapi { namespace { -int32_t LaunchSelLdr(PP_Resource file_io) { +bool LaunchSelLdr(const char* alleged_url, int socket_count, + void* imc_handles, void* nacl_process_handle, + int* nacl_process_id) { + return webkit_glue::LaunchSelLdr(alleged_url, socket_count, imc_handles, + nacl_process_handle, nacl_process_id); +} + +int UrandomFD(void) { +#if defined(OS_POSIX) + return GetUrandomFD(); +#else return 0; +#endif } } // namespace const PPB_NaClUtil_Private ppb_nacl_util = { &LaunchSelLdr, + &UrandomFD, }; // static |