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

Unified Diff: webkit/plugins/ppapi/ppb_nacl_util_private_impl.cc

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 | « ppapi/c/private/ppb_nacl_util_private.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ppapi/c/private/ppb_nacl_util_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698