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 Fri Nov 29 09:11:40 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Mon Feb 3 14:06:34 2014. */ |
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_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * The |uses_irt| flag indicates whether the IRT should be loaded in this | 71 * The |uses_irt| flag indicates whether the IRT should be loaded in this |
72 * NaCl process. This is true for ABI stable nexes. | 72 * NaCl process. This is true for ABI stable nexes. |
73 * The |enable_dyncode_syscalls| flag indicates whether or not the nexe | 73 * The |enable_dyncode_syscalls| flag indicates whether or not the nexe |
74 * will be able to use dynamic code system calls (e.g., mmap with PROT_EXEC). | 74 * will be able to use dynamic code system calls (e.g., mmap with PROT_EXEC). |
75 * The |enable_exception_handling| flag indicates whether or not the nexe | 75 * The |enable_exception_handling| flag indicates whether or not the nexe |
76 * will be able to use hardware exception handling. | 76 * will be able to use hardware exception handling. |
77 * The |enable_crash_throttling| flag indicates whether or not crashes of | 77 * The |enable_crash_throttling| flag indicates whether or not crashes of |
78 * the nexe contribute to crash throttling statisics and whether nexe starts | 78 * the nexe contribute to crash throttling statisics and whether nexe starts |
79 * are throttled by crash throttling. | 79 * are throttled by crash throttling. |
80 */ | 80 */ |
81 PP_ExternalPluginResult (*LaunchSelLdr)(PP_Instance instance, | 81 void (*LaunchSelLdr)(PP_Instance instance, |
82 const char* alleged_url, | 82 const char* alleged_url, |
83 PP_Bool uses_irt, | 83 PP_Bool uses_irt, |
84 PP_Bool uses_ppapi, | 84 PP_Bool uses_ppapi, |
85 PP_Bool enable_ppapi_dev, | 85 PP_Bool enable_ppapi_dev, |
86 PP_Bool enable_dyncode_syscalls, | 86 PP_Bool enable_dyncode_syscalls, |
87 PP_Bool enable_exception_handling, | 87 PP_Bool enable_exception_handling, |
88 PP_Bool enable_crash_throttling, | 88 PP_Bool enable_crash_throttling, |
89 void* imc_handle, | 89 void* imc_handle, |
90 struct PP_Var* error_message); | 90 struct PP_Var* error_message, |
| 91 struct PP_CompletionCallback connected_callback); |
91 /* This function starts the IPC proxy so the nexe can communicate with the | 92 /* This function starts the IPC proxy so the nexe can communicate with the |
92 * browser. Returns PP_EXTERNAL_PLUGIN_OK on success, otherwise a result code | 93 * browser. Returns PP_EXTERNAL_PLUGIN_OK on success, otherwise a result code |
93 * indicating the failure. PP_EXTERNAL_PLUGIN_FAILED is returned if | 94 * indicating the failure. PP_EXTERNAL_PLUGIN_FAILED is returned if |
94 * LaunchSelLdr wasn't called with the instance. | 95 * LaunchSelLdr wasn't called with the instance. |
95 * PP_EXTERNAL_PLUGIN_ERROR_MODULE is returned if the module can't be | 96 * PP_EXTERNAL_PLUGIN_ERROR_MODULE is returned if the module can't be |
96 * initialized. PP_EXTERNAL_PLUGIN_ERROR_INSTANCE is returned if the instance | 97 * initialized. PP_EXTERNAL_PLUGIN_ERROR_INSTANCE is returned if the instance |
97 * can't be initialized. | 98 * can't be initialized. |
98 */ | 99 */ |
99 PP_ExternalPluginResult (*StartPpapiProxy)(PP_Instance instance); | 100 PP_ExternalPluginResult (*StartPpapiProxy)(PP_Instance instance); |
100 /* On POSIX systems, this function returns the file descriptor of | 101 /* On POSIX systems, this function returns the file descriptor of |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 struct PP_Var resource_url, | 180 struct PP_Var resource_url, |
180 PP_Bool length_is_computable, | 181 PP_Bool length_is_computable, |
181 uint64_t loaded_bytes, | 182 uint64_t loaded_bytes, |
182 uint64_t total_bytes); | 183 uint64_t total_bytes); |
183 /* Sets a read-only property on the <embed> DOM element that corresponds to | 184 /* Sets a read-only property on the <embed> DOM element that corresponds to |
184 * the given instance. | 185 * the given instance. |
185 */ | 186 */ |
186 void (*SetReadOnlyProperty)(PP_Instance instance, | 187 void (*SetReadOnlyProperty)(PP_Instance instance, |
187 struct PP_Var key, | 188 struct PP_Var key, |
188 struct PP_Var value); | 189 struct PP_Var value); |
| 190 /* Loads the module specified by |nexe_handle|. */ |
| 191 PP_Bool (*LoadModule)(PP_Instance instance, |
| 192 PP_FileHandle nexe_handle, |
| 193 uint32_t* nacl_error_code); |
| 194 PP_Bool (*StartModule)(PP_Instance instance); |
189 }; | 195 }; |
190 | 196 |
191 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 197 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
192 /** | 198 /** |
193 * @} | 199 * @} |
194 */ | 200 */ |
195 | 201 |
196 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 202 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
197 | 203 |
OLD | NEW |