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 /* From private/ppb_nacl_private.idl modified Mon Jan 7 12:49:31 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Thu Jan 10 16:07:40 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
15 | 15 |
16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" | 16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 */ | 62 */ |
63 /* PPB_NaCl_Private */ | 63 /* PPB_NaCl_Private */ |
64 struct PPB_NaCl_Private_1_0 { | 64 struct PPB_NaCl_Private_1_0 { |
65 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and | 65 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and |
66 * writes a nacl::Handle to imc_handle. Returns PP_NACL_FAILED on failure. | 66 * writes a nacl::Handle to imc_handle. Returns PP_NACL_FAILED on failure. |
67 * The |enable_ppapi_dev| parameter controls whether GetInterface | 67 * The |enable_ppapi_dev| parameter controls whether GetInterface |
68 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag | 68 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag |
69 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. | 69 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. |
70 * This implies that LaunchSelLdr is run from the main thread. If a nexe | 70 * This implies that LaunchSelLdr is run from the main thread. If a nexe |
71 * does not need PPAPI, then it can run off the main thread. | 71 * does not need PPAPI, then it can run off the main thread. |
| 72 * The |uses_irt| flag indicates whether the IRT should be loaded in this |
| 73 * NaCl process. This is true for ABI stable nexes. |
72 */ | 74 */ |
73 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, | 75 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, |
74 const char* alleged_url, | 76 const char* alleged_url, |
| 77 PP_Bool uses_irt, |
75 PP_Bool uses_ppapi, | 78 PP_Bool uses_ppapi, |
76 PP_Bool enable_ppapi_dev, | 79 PP_Bool enable_ppapi_dev, |
77 void* imc_handle); | 80 void* imc_handle); |
78 /* This function starts the IPC proxy so the nexe can communicate with the | 81 /* This function starts the IPC proxy so the nexe can communicate with the |
79 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating | 82 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating |
80 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with | 83 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with |
81 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be | 84 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be |
82 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be | 85 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be |
83 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. | 86 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. |
84 */ | 87 */ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 PP_NaClError message_id); | 131 PP_NaClError message_id); |
129 }; | 132 }; |
130 | 133 |
131 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 134 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
132 /** | 135 /** |
133 * @} | 136 * @} |
134 */ | 137 */ |
135 | 138 |
136 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 139 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
137 | 140 |
OLD | NEW |