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. */ | 6 /* This file contains NaCl private interfaces. */ |
7 | 7 |
8 #inline c | 8 #inline c |
9 #include "ppapi/c/private/pp_file_handle.h" | 9 #include "ppapi/c/private/pp_file_handle.h" |
10 #endinl | 10 #endinl |
(...skipping 13 matching lines...) Expand all Loading... |
24 PP_NACL_ERROR_INSTANCE = 3, | 24 PP_NACL_ERROR_INSTANCE = 3, |
25 /** SRPC proxy should be used instead */ | 25 /** SRPC proxy should be used instead */ |
26 PP_NACL_USE_SRPC = 128 | 26 PP_NACL_USE_SRPC = 128 |
27 }; | 27 }; |
28 | 28 |
29 /* PPB_NaCl_Private */ | 29 /* PPB_NaCl_Private */ |
30 interface PPB_NaCl_Private { | 30 interface PPB_NaCl_Private { |
31 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes | 31 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes |
32 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on | 32 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on |
33 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface | 33 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface |
34 * returns 'Dev' interfaces to the NaCl plugin. | 34 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag |
| 35 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. |
| 36 * This implies that LaunchSelLdr is run from the main thread. If a nexe |
| 37 * does not need PPAPI, then it can run off the main thread. |
35 */ | 38 */ |
36 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, | 39 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, |
37 [in] str_t alleged_url, | 40 [in] str_t alleged_url, |
| 41 [in] PP_Bool uses_ppapi, |
38 [in] PP_Bool enable_ppapi_dev, | 42 [in] PP_Bool enable_ppapi_dev, |
39 [in] int32_t socket_count, | 43 [in] int32_t socket_count, |
40 [out] mem_t imc_handles); | 44 [out] mem_t imc_handles); |
41 | 45 |
42 /* This function starts the IPC proxy so the nexe can communicate with the | 46 /* This function starts the IPC proxy so the nexe can communicate with the |
43 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating | 47 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating |
44 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with | 48 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with |
45 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be | 49 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be |
46 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be | 50 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be |
47 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. | 51 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 93 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
90 | 94 |
91 /* Return true if we are off the record. | 95 /* Return true if we are off the record. |
92 */ | 96 */ |
93 PP_Bool IsOffTheRecord(); | 97 PP_Bool IsOffTheRecord(); |
94 | 98 |
95 /* Return true if PNaCl is turned on. | 99 /* Return true if PNaCl is turned on. |
96 */ | 100 */ |
97 PP_Bool IsPnaclEnabled(); | 101 PP_Bool IsPnaclEnabled(); |
98 }; | 102 }; |
OLD | NEW |