| 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 Mon Jul 15 09:19:33 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Fri Jul 19 09:51:16 2013. */ |
| 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_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 * use inside the Windows sandbox. Note that we provide this via dependency | 107 * use inside the Windows sandbox. Note that we provide this via dependency |
| 108 * injection only to avoid the linkage problems that occur because the NaCl | 108 * injection only to avoid the linkage problems that occur because the NaCl |
| 109 * plugin is built as a separate DLL/DSO | 109 * plugin is built as a separate DLL/DSO |
| 110 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 110 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
| 111 */ | 111 */ |
| 112 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, | 112 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, |
| 113 uint32_t process_id, | 113 uint32_t process_id, |
| 114 PP_FileHandle* target_handle, | 114 PP_FileHandle* target_handle, |
| 115 uint32_t desired_access, | 115 uint32_t desired_access, |
| 116 uint32_t options); | 116 uint32_t options); |
| 117 /* Check if PNaCl is installed and attempt to install if necessary. |
| 118 * Callback is called when the check is done and PNaCl is already installed, |
| 119 * or after an on-demand install is attempted. Called back with PP_OK is |
| 120 * PNaCl is available. Called back with an error otherwise. |
| 121 */ |
| 122 int32_t (*EnsurePnaclInstalled)(PP_Instance instance, |
| 123 struct PP_CompletionCallback callback); |
| 117 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 124 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
| 118 * component directory, or an invalid handle on failure. | 125 * component directory, or an invalid handle on failure. |
| 119 * Do we want this to take a completion callback and be async, or | |
| 120 * could we make this happen on another thread? | |
| 121 */ | 126 */ |
| 122 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); | 127 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); |
| 123 /* This creates a temporary file that will be deleted by the time | 128 /* This creates a temporary file that will be deleted by the time |
| 124 * the last handle is closed (or earlier on POSIX systems), and | 129 * the last handle is closed (or earlier on POSIX systems), and |
| 125 * returns a posix handle to that temporary file. | 130 * returns a posix handle to that temporary file. |
| 126 */ | 131 */ |
| 127 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 132 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
| 128 /* Create a temporary file, which will be deleted by the time the last | 133 /* Create a temporary file, which will be deleted by the time the last |
| 129 * handle is closed (or earlier on POSIX systems), to use for the nexe | 134 * handle is closed (or earlier on POSIX systems), to use for the nexe |
| 130 * with the cache information given by |pexe_url|, |abi_version|, |opt_level|, | 135 * with the cache information given by |pexe_url|, |abi_version|, |opt_level|, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 uint64_t* file_token_hi); | 179 uint64_t* file_token_hi); |
| 175 }; | 180 }; |
| 176 | 181 |
| 177 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 182 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 178 /** | 183 /** |
| 179 * @} | 184 * @} |
| 180 */ | 185 */ |
| 181 | 186 |
| 182 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 187 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 183 | 188 |
| OLD | NEW |