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 Jul 15 09:19:33 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Mon Jul 15 09:19:33 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_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 | 17 |
17 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" | 18 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" |
18 #define PPB_NACL_PRIVATE_INTERFACE PPB_NACL_PRIVATE_INTERFACE_1_0 | 19 #define PPB_NACL_PRIVATE_INTERFACE PPB_NACL_PRIVATE_INTERFACE_1_0 |
19 | 20 |
20 /** | 21 /** |
21 * @file | 22 * @file |
22 * This file contains NaCl private interfaces. This interface is not versioned | 23 * This file contains NaCl private interfaces. This interface is not versioned |
23 * and is for internal Chrome use. It may change without notice. */ | 24 * and is for internal Chrome use. It may change without notice. */ |
24 | 25 |
25 | 26 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 * The |enable_exception_handling| flag indicates whether or not the nexe | 77 * The |enable_exception_handling| flag indicates whether or not the nexe |
77 * will be able to use hardware exception handling. | 78 * will be able to use hardware exception handling. |
78 */ | 79 */ |
79 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, | 80 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, |
80 const char* alleged_url, | 81 const char* alleged_url, |
81 PP_Bool uses_irt, | 82 PP_Bool uses_irt, |
82 PP_Bool uses_ppapi, | 83 PP_Bool uses_ppapi, |
83 PP_Bool enable_ppapi_dev, | 84 PP_Bool enable_ppapi_dev, |
84 PP_Bool enable_dyncode_syscalls, | 85 PP_Bool enable_dyncode_syscalls, |
85 PP_Bool enable_exception_handling, | 86 PP_Bool enable_exception_handling, |
86 void* imc_handle); | 87 void* imc_handle, |
| 88 struct PP_Var* error_message); |
87 /* This function starts the IPC proxy so the nexe can communicate with the | 89 /* This function starts the IPC proxy so the nexe can communicate with the |
88 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating | 90 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating |
89 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with | 91 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with |
90 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be | 92 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be |
91 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be | 93 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be |
92 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. | 94 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. |
93 */ | 95 */ |
94 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance); | 96 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance); |
95 /* On POSIX systems, this function returns the file descriptor of | 97 /* On POSIX systems, this function returns the file descriptor of |
96 * /dev/urandom. On non-POSIX systems, this function returns 0. | 98 * /dev/urandom. On non-POSIX systems, this function returns 0. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 uint64_t* file_token_hi); | 174 uint64_t* file_token_hi); |
173 }; | 175 }; |
174 | 176 |
175 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 177 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
176 /** | 178 /** |
177 * @} | 179 * @} |
178 */ | 180 */ |
179 | 181 |
180 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 182 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
181 | 183 |
OLD | NEW |