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 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 /* PPB_NaCl_Private */ | 38 /* PPB_NaCl_Private */ |
39 interface PPB_NaCl_Private { | 39 interface PPB_NaCl_Private { |
40 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes | 40 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes |
41 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on | 41 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on |
42 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface | 42 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface |
43 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag | 43 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag |
44 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. | 44 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. |
45 * This implies that LaunchSelLdr is run from the main thread. If a nexe | 45 * This implies that LaunchSelLdr is run from the main thread. If a nexe |
46 * does not need PPAPI, then it can run off the main thread. | 46 * does not need PPAPI, then it can run off the main thread. |
47 * The |uses_irt| flag indicates if a nexe depends on the IRT or not. | |
Mark Seaborn
2013/01/04 00:05:41
Maybe "...indicates whether the IRT should be load
jvoung (off chromium)
2013/01/04 17:09:23
Done.
| |
48 * This is true for ABI stable nexes. | |
47 */ | 49 */ |
48 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, | 50 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, |
49 [in] str_t alleged_url, | 51 [in] str_t alleged_url, |
50 [in] PP_Bool uses_ppapi, | 52 [in] PP_Bool uses_ppapi, |
51 [in] PP_Bool enable_ppapi_dev, | 53 [in] PP_Bool enable_ppapi_dev, |
52 [in] int32_t socket_count, | 54 [in] int32_t socket_count, |
Mark Seaborn
2013/01/04 00:05:41
Can you keep socket_count and imc_handles together
jvoung (off chromium)
2013/01/04 17:09:23
Done. Actually |uses_ppapi| is also toggled to fa
| |
55 [in] PP_Bool uses_irt, | |
53 [out] mem_t imc_handles); | 56 [out] mem_t imc_handles); |
54 | 57 |
55 /* This function starts the IPC proxy so the nexe can communicate with the | 58 /* This function starts the IPC proxy so the nexe can communicate with the |
56 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating | 59 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating |
57 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with | 60 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with |
58 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be | 61 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be |
59 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be | 62 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be |
60 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. | 63 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. |
61 */ | 64 */ |
62 PP_NaClResult StartPpapiProxy(PP_Instance instance); | 65 PP_NaClResult StartPpapiProxy(PP_Instance instance); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 PP_Bool IsOffTheRecord(); | 109 PP_Bool IsOffTheRecord(); |
107 | 110 |
108 /* Return true if PNaCl is turned on. | 111 /* Return true if PNaCl is turned on. |
109 */ | 112 */ |
110 PP_Bool IsPnaclEnabled(); | 113 PP_Bool IsPnaclEnabled(); |
111 | 114 |
112 /* Display a UI message to the user. */ | 115 /* Display a UI message to the user. */ |
113 PP_NaClResult ReportNaClError([in] PP_Instance instance, | 116 PP_NaClResult ReportNaClError([in] PP_Instance instance, |
114 [in] PP_NaClError message_id); | 117 [in] PP_NaClError message_id); |
115 }; | 118 }; |
OLD | NEW |