| 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 Oct 18 08:23:34 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Thu Oct 31 15:10:06 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 * use inside the Windows sandbox. Note that we provide this via dependency | 99 * use inside the Windows sandbox. Note that we provide this via dependency |
| 100 * injection only to avoid the linkage problems that occur because the NaCl | 100 * injection only to avoid the linkage problems that occur because the NaCl |
| 101 * plugin is built as a separate DLL/DSO | 101 * plugin is built as a separate DLL/DSO |
| 102 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 102 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
| 103 */ | 103 */ |
| 104 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, | 104 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, |
| 105 uint32_t process_id, | 105 uint32_t process_id, |
| 106 PP_FileHandle* target_handle, | 106 PP_FileHandle* target_handle, |
| 107 uint32_t desired_access, | 107 uint32_t desired_access, |
| 108 uint32_t options); | 108 uint32_t options); |
| 109 /* Check if PNaCl is installed and attempt to install if necessary. | |
| 110 * Callback is called when the check is done and PNaCl is already installed, | |
| 111 * or after an on-demand install is attempted. Called back with PP_OK if | |
| 112 * PNaCl is available. Called back with an error otherwise. | |
| 113 */ | |
| 114 int32_t (*EnsurePnaclInstalled)(PP_Instance instance, | |
| 115 struct PP_CompletionCallback callback); | |
| 116 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 109 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
| 117 * component directory, or an invalid handle on failure. | 110 * component directory, or an invalid handle on failure. |
| 118 */ | 111 */ |
| 119 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); | 112 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); |
| 120 /* This creates a temporary file that will be deleted by the time | 113 /* This creates a temporary file that will be deleted by the time |
| 121 * the last handle is closed (or earlier on POSIX systems), and | 114 * the last handle is closed (or earlier on POSIX systems), and |
| 122 * returns a posix handle to that temporary file. | 115 * returns a posix handle to that temporary file. |
| 123 */ | 116 */ |
| 124 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 117 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
| 125 /* Create a temporary file, which will be deleted by the time the | 118 /* Create a temporary file, which will be deleted by the time the |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 uint64_t* file_token_hi); | 165 uint64_t* file_token_hi); |
| 173 }; | 166 }; |
| 174 | 167 |
| 175 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 168 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 176 /** | 169 /** |
| 177 * @} | 170 * @} |
| 178 */ | 171 */ |
| 179 | 172 |
| 180 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 173 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 181 | 174 |
| OLD | NEW |