OLD | NEW |
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 | 5 |
6 /* From private/ppb_nacl_private.idl modified Fri Nov 16 05:20:17 2012. */ | 6 /* From private/ppb_nacl_private.idl modified Tue Nov 20 08:49:26 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
15 | 15 |
16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" | 16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating | 67 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating |
68 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with | 68 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with |
69 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be | 69 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be |
70 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be | 70 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be |
71 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. | 71 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. |
72 */ | 72 */ |
73 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance); | 73 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance); |
74 /* On POSIX systems, this function returns the file descriptor of | 74 /* On POSIX systems, this function returns the file descriptor of |
75 * /dev/urandom. On non-POSIX systems, this function returns 0. | 75 * /dev/urandom. On non-POSIX systems, this function returns 0. |
76 */ | 76 */ |
77 int32_t (*UrandomFD)(); | 77 int32_t (*UrandomFD)(void); |
78 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI | 78 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI |
79 * proxy. This is so paranoid admins can effectively prevent untrusted shader | 79 * proxy. This is so paranoid admins can effectively prevent untrusted shader |
80 * code to be processed by the graphics stack. | 80 * code to be processed by the graphics stack. |
81 */ | 81 */ |
82 PP_Bool (*Are3DInterfacesDisabled)(); | 82 PP_Bool (*Are3DInterfacesDisabled)(void); |
83 /* Enables the creation of sel_ldr processes off of the main thread. | 83 /* Enables the creation of sel_ldr processes off of the main thread. |
84 */ | 84 */ |
85 void (*EnableBackgroundSelLdrLaunch)(); | 85 void (*EnableBackgroundSelLdrLaunch)(void); |
86 /* This is Windows-specific. This is a replacement for DuplicateHandle() for | 86 /* This is Windows-specific. This is a replacement for DuplicateHandle() for |
87 * use inside the Windows sandbox. Note that we provide this via dependency | 87 * use inside the Windows sandbox. Note that we provide this via dependency |
88 * injection only to avoid the linkage problems that occur because the NaCl | 88 * injection only to avoid the linkage problems that occur because the NaCl |
89 * plugin is built as a separate DLL/DSO | 89 * plugin is built as a separate DLL/DSO |
90 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 90 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
91 */ | 91 */ |
92 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, | 92 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, |
93 uint32_t process_id, | 93 uint32_t process_id, |
94 PP_FileHandle* target_handle, | 94 PP_FileHandle* target_handle, |
95 uint32_t desired_access, | 95 uint32_t desired_access, |
96 uint32_t options); | 96 uint32_t options); |
97 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 97 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
98 * component directory, or -1 on error. | 98 * component directory, or -1 on error. |
99 * Do we want this to take a completion callback and be async, or | 99 * Do we want this to take a completion callback and be async, or |
100 * could we make this happen on another thread? | 100 * could we make this happen on another thread? |
101 */ | 101 */ |
102 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); | 102 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); |
103 /* This creates a temporary file that will be deleted by the time | 103 /* This creates a temporary file that will be deleted by the time |
104 * the last handle is closed (or earlier on POSIX systems), and | 104 * the last handle is closed (or earlier on POSIX systems), and |
105 * returns a posix handle to that temporary file. | 105 * returns a posix handle to that temporary file. |
106 */ | 106 */ |
107 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 107 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
108 /* Return true if we are off the record. | 108 /* Return true if we are off the record. |
109 */ | 109 */ |
110 PP_Bool (*IsOffTheRecord)(); | 110 PP_Bool (*IsOffTheRecord)(void); |
111 /* Return true if PNaCl is turned on. | 111 /* Return true if PNaCl is turned on. |
112 */ | 112 */ |
113 PP_Bool (*IsPnaclEnabled)(); | 113 PP_Bool (*IsPnaclEnabled)(void); |
114 }; | 114 }; |
115 | 115 |
116 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 116 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
117 /** | 117 /** |
118 * @} | 118 * @} |
119 */ | 119 */ |
120 | 120 |
121 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 121 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
122 | 122 |
OLD | NEW |