| Index: webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc (revision 69569)
|
| +++ webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc (working copy)
|
| @@ -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
|
|
|