Chromium Code Reviews| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 * does not need PPAPI, then it can run off the main thread. | 127 * does not need PPAPI, then it can run off the main thread. |
| 128 * The |uses_irt| flag indicates whether the IRT should be loaded in this | 128 * The |uses_irt| flag indicates whether the IRT should be loaded in this |
| 129 * NaCl process. This is true for ABI stable nexes. | 129 * NaCl process. This is true for ABI stable nexes. |
| 130 * The |enable_dyncode_syscalls| flag indicates whether or not the nexe | 130 * The |enable_dyncode_syscalls| flag indicates whether or not the nexe |
| 131 * will be able to use dynamic code system calls (e.g., mmap with PROT_EXEC). | 131 * will be able to use dynamic code system calls (e.g., mmap with PROT_EXEC). |
| 132 * The |enable_exception_handling| flag indicates whether or not the nexe | 132 * The |enable_exception_handling| flag indicates whether or not the nexe |
| 133 * will be able to use hardware exception handling. | 133 * will be able to use hardware exception handling. |
| 134 * The |enable_crash_throttling| flag indicates whether or not crashes of | 134 * The |enable_crash_throttling| flag indicates whether or not crashes of |
| 135 * the nexe contribute to crash throttling statisics and whether nexe starts | 135 * the nexe contribute to crash throttling statisics and whether nexe starts |
| 136 * are throttled by crash throttling. | 136 * are throttled by crash throttling. |
| 137 * The |enable_nonsfi| flag indicates whether or not nonsfi-mode is enabled | |
| 138 * on this plugin. | |
| 137 */ | 139 */ |
| 138 void LaunchSelLdr([in] PP_Instance instance, | 140 void LaunchSelLdr([in] PP_Instance instance, |
| 139 [in] str_t alleged_url, | 141 [in] str_t alleged_url, |
| 140 [in] PP_Bool uses_irt, | 142 [in] PP_Bool uses_irt, |
| 141 [in] PP_Bool uses_ppapi, | 143 [in] PP_Bool uses_ppapi, |
| 142 [in] PP_Bool enable_ppapi_dev, | 144 [in] PP_Bool enable_ppapi_dev, |
| 143 [in] PP_Bool enable_dyncode_syscalls, | 145 [in] PP_Bool enable_dyncode_syscalls, |
| 144 [in] PP_Bool enable_exception_handling, | 146 [in] PP_Bool enable_exception_handling, |
| 145 [in] PP_Bool enable_crash_throttling, | 147 [in] PP_Bool enable_crash_throttling, |
| 148 [in] PP_Bool enable_nonsfi, | |
| 146 [out] mem_t imc_handle, | 149 [out] mem_t imc_handle, |
| 147 [out] PP_Var error_message, | 150 [out] PP_Var error_message, |
| 148 [in] PP_CompletionCallback callback); | 151 [in] PP_CompletionCallback callback); |
| 149 | 152 |
| 150 /* This function starts the IPC proxy so the nexe can communicate with the | 153 /* This function starts the IPC proxy so the nexe can communicate with the |
| 151 * browser. Returns PP_EXTERNAL_PLUGIN_OK on success, otherwise a result code | 154 * browser. Returns PP_EXTERNAL_PLUGIN_OK on success, otherwise a result code |
| 152 * indicating the failure. PP_EXTERNAL_PLUGIN_FAILED is returned if | 155 * indicating the failure. PP_EXTERNAL_PLUGIN_FAILED is returned if |
| 153 * LaunchSelLdr wasn't called with the instance. | 156 * LaunchSelLdr wasn't called with the instance. |
| 154 * PP_EXTERNAL_PLUGIN_ERROR_MODULE is returned if the module can't be | 157 * PP_EXTERNAL_PLUGIN_ERROR_MODULE is returned if the module can't be |
| 155 * initialized. PP_EXTERNAL_PLUGIN_ERROR_INSTANCE is returned if the instance | 158 * initialized. PP_EXTERNAL_PLUGIN_ERROR_INSTANCE is returned if the instance |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 | 190 |
| 188 /* This creates a temporary file that will be deleted by the time | 191 /* This creates a temporary file that will be deleted by the time |
| 189 * the last handle is closed (or earlier on POSIX systems), and | 192 * the last handle is closed (or earlier on POSIX systems), and |
| 190 * returns a posix handle to that temporary file. | 193 * returns a posix handle to that temporary file. |
| 191 */ | 194 */ |
| 192 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 195 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
| 193 | 196 |
| 194 /* Return the number of processors in the system as reported by the OS */ | 197 /* Return the number of processors in the system as reported by the OS */ |
| 195 int32_t GetNumberOfProcessors(); | 198 int32_t GetNumberOfProcessors(); |
| 196 | 199 |
| 200 /* Return the true if the non-SFI mode is enabled. */ | |
|
Mark Seaborn
2014/02/27 17:10:22
"Return whether..."
hidehiko
2014/02/28 06:41:54
Done.
| |
| 201 PP_Bool IsNonSFIEnabled(); | |
| 202 | |
| 197 /* Create a temporary file, which will be deleted by the time the | 203 /* Create a temporary file, which will be deleted by the time the |
| 198 * last handle is closed (or earlier on POSIX systems), to use for | 204 * last handle is closed (or earlier on POSIX systems), to use for |
| 199 * the nexe with the cache information given by |pexe_url|, | 205 * the nexe with the cache information given by |pexe_url|, |
| 200 * |abi_version|, |opt_level|, |last_modified|, |etag|, and | 206 * |abi_version|, |opt_level|, |last_modified|, |etag|, and |
| 201 * |has_no_store_header|. If the nexe is already present in the | 207 * |has_no_store_header|. If the nexe is already present in the |
| 202 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe | 208 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe |
| 203 * will be copied into the temporary file. Otherwise |is_hit| is set | 209 * will be copied into the temporary file. Otherwise |is_hit| is set |
| 204 * to PP_FALSE and the temporary file will be writeable. Currently | 210 * to PP_FALSE and the temporary file will be writeable. Currently |
| 205 * the implementation is a stub, which always sets is_hit to false | 211 * the implementation is a stub, which always sets is_hit to false |
| 206 * and calls the implementation of CreateTemporaryFile. In a | 212 * and calls the implementation of CreateTemporaryFile. In a |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 [in] PP_Var value); | 267 [in] PP_Var value); |
| 262 | 268 |
| 263 /* Report an error that occured while attempting to load a nexe. */ | 269 /* Report an error that occured while attempting to load a nexe. */ |
| 264 void ReportLoadError([in] PP_Instance instance, | 270 void ReportLoadError([in] PP_Instance instance, |
| 265 [in] PP_NaClError error, | 271 [in] PP_NaClError error, |
| 266 [in] PP_Bool is_installed); | 272 [in] PP_Bool is_installed); |
| 267 | 273 |
| 268 /* Performs internal cleanup when an instance is destroyed. */ | 274 /* Performs internal cleanup when an instance is destroyed. */ |
| 269 void InstanceDestroyed([in] PP_Instance instance); | 275 void InstanceDestroyed([in] PP_Instance instance); |
| 270 }; | 276 }; |
| OLD | NEW |