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

Side by Side Diff: ppapi/c/private/ppb_nacl_private.h

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_
6 #define PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ 6 #define PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_
7 7
8 #include "ppapi/c/pp_resource.h" 8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 10
11 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.3" 11 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.3"
12 12
13 struct PPB_NaCl_Private { 13 struct PPB_NaCl_Private {
14 // This function launches NaCl's sel_ldr process. On success, the function 14 // This function launches NaCl's sel_ldr process. On success, the function
15 // returns true, otherwise it returns false. When it returns true, it will 15 // returns true, otherwise it returns false. When it returns true, it will
16 // write |socket_count| nacl::Handles to imc_handles and will write the 16 // write |socket_count| nacl::Handles to imc_handles and will write the
17 // nacl::Handle of the created process to |nacl_process_handle|. Finally, 17 // nacl::Handle of the created process to |nacl_process_handle|. Finally,
18 // the function will write the process ID of the created process to 18 // the function will write the process ID of the created process to
19 // |nacl_process_id|. Unless EnableBackgroundSelLdrLaunch is called, this 19 // |nacl_process_id|. Unless EnableBackgroundSelLdrLaunch is called, this
20 // method must be invoked from the main thread. 20 // method must be invoked from the main thread.
21 bool (*LaunchSelLdr)(const char* alleged_url, int socket_count, 21 bool (*LaunchSelLdr)(int instance,
dmichael (off chromium) 2012/04/27 17:14:36 It would be clearer to use PP_Instance, since that
bbudge 2012/04/27 17:46:56 Yeah, this is supposed to be PP_Instance. Mark Sea
22 const char* alleged_url, int socket_count,
22 void* imc_handles, void* nacl_process_handle, 23 void* imc_handles, void* nacl_process_handle,
23 int* nacl_process_id); 24 int* nacl_process_id);
24 25
25 // On POSIX systems, this function returns the file descriptor of 26 // On POSIX systems, this function returns the file descriptor of
26 // /dev/urandom. On non-POSIX systems, this function returns 0. 27 // /dev/urandom. On non-POSIX systems, this function returns 0.
27 int (*UrandomFD)(void); 28 int (*UrandomFD)(void);
28 29
29 // Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI 30 // Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI
30 // proxy. This is so paranoid admins can effectively prevent untrusted shader 31 // proxy. This is so paranoid admins can effectively prevent untrusted shader
31 // code to be processed by the graphics stack. 32 // code to be processed by the graphics stack.
(...skipping 13 matching lines...) Expand all
45 // usable with NaClSetBrokerDuplicateHandleFunc() without further 46 // usable with NaClSetBrokerDuplicateHandleFunc() without further
46 // wrapping. 47 // wrapping.
47 int (*BrokerDuplicateHandle)(void* source_handle, 48 int (*BrokerDuplicateHandle)(void* source_handle,
48 uint32_t process_id, 49 uint32_t process_id,
49 void** target_handle, 50 void** target_handle,
50 uint32_t desired_access, 51 uint32_t desired_access,
51 uint32_t options); 52 uint32_t options);
52 }; 53 };
53 54
54 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ 55 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698