| 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 /* This file contains NaCl private interfaces. This interface is not versioned | 6 /* This file contains NaCl private interfaces. This interface is not versioned |
| 7 * and is for internal Chrome use. It may change without notice. */ | 7 * and is for internal Chrome use. It may change without notice. */ |
| 8 | 8 |
| 9 label Chrome { | 9 label Chrome { |
| 10 M25 = 1.0 | 10 M25 = 1.0 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 struct PP_PNaClOptions { | 136 struct PP_PNaClOptions { |
| 137 PP_Bool translate; | 137 PP_Bool translate; |
| 138 PP_Bool is_debug; | 138 PP_Bool is_debug; |
| 139 int32_t opt_level; | 139 int32_t opt_level; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 /* Callback invoked upon completion of PPP_ManifestService::OpenResource(). */ | 142 /* Callback invoked upon completion of PPP_ManifestService::OpenResource(). */ |
| 143 typedef void PP_OpenResourceCompletionCallback([inout] mem_t user_data, | 143 typedef void PP_OpenResourceCompletionCallback([inout] mem_t user_data, |
| 144 [in] PP_FileHandle file_handle); | 144 [in] PP_FileHandle file_handle); |
| 145 | 145 |
| 146 /* ManifestService to support irt_open_resource() function. | |
| 147 * All functions of the service should have PP_Bool return value. It represents | |
| 148 * whether the service is still alive or not. Trivially Quit() should always | |
| 149 * return false. However, other functions also can return false. | |
| 150 * Once false is called, as the service has been destructed, all functions | |
| 151 * should never be called afterwords. | |
| 152 */ | |
| 153 interface PPP_ManifestService { | |
| 154 /* Called when ManifestService should be destructed. */ | |
| 155 PP_Bool Quit([inout] mem_t user_data); | |
| 156 | |
| 157 /* Called when PPAPI initialization in the NaCl plugin is finished. */ | |
| 158 PP_Bool StartupInitializationComplete([inout] mem_t user_data); | |
| 159 }; | |
| 160 | |
| 161 /* Corresponds to NaClFileInfo in | 146 /* Corresponds to NaClFileInfo in |
| 162 * native_client/src/trusted/validator/nacl_file_info.h */ | 147 * native_client/src/trusted/validator/nacl_file_info.h */ |
| 163 struct PP_NaClFileInfo { | 148 struct PP_NaClFileInfo { |
| 164 PP_FileHandle handle; | 149 PP_FileHandle handle; |
| 165 | 150 |
| 166 /* See NaClFileToken comment in nacl_file_info.h */ | 151 /* See NaClFileToken comment in nacl_file_info.h */ |
| 167 uint64_t token_lo; | 152 uint64_t token_lo; |
| 168 uint64_t token_hi; | 153 uint64_t token_hi; |
| 169 }; | 154 }; |
| 170 | 155 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 196 [in] PP_Bool main_service_runtime, | 181 [in] PP_Bool main_service_runtime, |
| 197 [in] str_t alleged_url, | 182 [in] str_t alleged_url, |
| 198 [in] PP_NaClFileInfo nexe_file_info, | 183 [in] PP_NaClFileInfo nexe_file_info, |
| 199 [in] PP_Bool uses_irt, | 184 [in] PP_Bool uses_irt, |
| 200 [in] PP_Bool uses_ppapi, | 185 [in] PP_Bool uses_ppapi, |
| 201 [in] PP_Bool uses_nonsfi_mode, | 186 [in] PP_Bool uses_nonsfi_mode, |
| 202 [in] PP_Bool enable_ppapi_dev, | 187 [in] PP_Bool enable_ppapi_dev, |
| 203 [in] PP_Bool enable_dyncode_syscalls, | 188 [in] PP_Bool enable_dyncode_syscalls, |
| 204 [in] PP_Bool enable_exception_handling, | 189 [in] PP_Bool enable_exception_handling, |
| 205 [in] PP_Bool enable_crash_throttling, | 190 [in] PP_Bool enable_crash_throttling, |
| 206 [in] PPP_ManifestService manifest_service_interface, | |
| 207 [inout] mem_t manifest_service_user_data, | |
| 208 [out] mem_t imc_handle, | 191 [out] mem_t imc_handle, |
| 209 [in] PP_CompletionCallback callback); | 192 [in] PP_CompletionCallback callback); |
| 210 | 193 |
| 211 /* This function starts the IPC proxy so the nexe can communicate with the | 194 /* This function starts the IPC proxy so the nexe can communicate with the |
| 212 * browser. | 195 * browser. |
| 213 */ | 196 */ |
| 214 PP_Bool StartPpapiProxy(PP_Instance instance); | 197 PP_Bool StartPpapiProxy(PP_Instance instance); |
| 215 | 198 |
| 216 /* On POSIX systems, this function returns the file descriptor of | 199 /* On POSIX systems, this function returns the file descriptor of |
| 217 * /dev/urandom. On non-POSIX systems, this function returns 0. | 200 * /dev/urandom. On non-POSIX systems, this function returns 0. |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 [in] PP_Bool is_helper_process, | 416 [in] PP_Bool is_helper_process, |
| 434 [in] str_t key, | 417 [in] str_t key, |
| 435 [out] PP_NaClFileInfo file_info, | 418 [out] PP_NaClFileInfo file_info, |
| 436 [in] PP_CompletionCallback callback); | 419 [in] PP_CompletionCallback callback); |
| 437 | 420 |
| 438 /* Sets the start time for PNaCl downloading and translation to the current | 421 /* Sets the start time for PNaCl downloading and translation to the current |
| 439 * time. | 422 * time. |
| 440 */ | 423 */ |
| 441 void SetPNaClStartTime([in] PP_Instance instance); | 424 void SetPNaClStartTime([in] PP_Instance instance); |
| 442 }; | 425 }; |
| OLD | NEW |