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 14 matching lines...) Expand all Loading... | |
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. |
35 */ | 35 */ |
bbudge
2012/11/29 02:12:02
We should probably add a comment for |uses_ppapi|
jvoung (off chromium)
2012/11/29 22:46:46
Done.
| |
36 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, | 36 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, |
37 [in] str_t alleged_url, | 37 [in] str_t alleged_url, |
38 [in] PP_Bool uses_ppapi, | |
38 [in] PP_Bool enable_ppapi_dev, | 39 [in] PP_Bool enable_ppapi_dev, |
39 [in] int32_t socket_count, | 40 [in] int32_t socket_count, |
40 [out] mem_t imc_handles); | 41 [out] mem_t imc_handles); |
41 | 42 |
42 /* This function starts the IPC proxy so the nexe can communicate with the | 43 /* 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 | 44 * 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 | 45 * 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 | 46 * 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 | 47 * 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. | 48 * 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); | 90 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
90 | 91 |
91 /* Return true if we are off the record. | 92 /* Return true if we are off the record. |
92 */ | 93 */ |
93 PP_Bool IsOffTheRecord(); | 94 PP_Bool IsOffTheRecord(); |
94 | 95 |
95 /* Return true if PNaCl is turned on. | 96 /* Return true if PNaCl is turned on. |
96 */ | 97 */ |
97 PP_Bool IsPnaclEnabled(); | 98 PP_Bool IsPnaclEnabled(); |
98 }; | 99 }; |
OLD | NEW |