| 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 29 16:44:58 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Tue Aug 6 11:51:26 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 #include "ppapi/c/pp_var.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int32_t (*GetNexeFd)(PP_Instance instance, | 134 int32_t (*GetNexeFd)(PP_Instance instance, |
| 135 const char* pexe_url, | 135 const char* pexe_url, |
| 136 uint32_t abi_version, | 136 uint32_t abi_version, |
| 137 uint32_t opt_level, | 137 uint32_t opt_level, |
| 138 const char* last_modified, | 138 const char* last_modified, |
| 139 const char* etag, | 139 const char* etag, |
| 140 PP_Bool* is_hit, | 140 PP_Bool* is_hit, |
| 141 PP_FileHandle* nexe_handle, | 141 PP_FileHandle* nexe_handle, |
| 142 struct PP_CompletionCallback callback); | 142 struct PP_CompletionCallback callback); |
| 143 /* Report to the browser that translation of the pexe for |instance| | 143 /* Report to the browser that translation of the pexe for |instance| |
| 144 * has finished. The browser may then store the translation in the | 144 * has finished, or aborted with an error. If |success| is true, the |
| 145 * cache. The renderer must first have called GetNexeFd for the same | 145 * browser may then store the translation in the cache. The renderer |
| 146 * instance. (It is not guaranteed to, however; if there is an error | 146 * must first have called GetNexeFd for the same instance. (The browser is |
| 147 * or the file is too big for the cache, or the browser is in incognito | 147 * not guaranteed to store the nexe even if |success| is true; if there is |
| 148 * mode, no notification will be delivered to the plugin.) | 148 * an error on the browser side, or the file is too big for the cache, or |
| 149 * the browser is in incognito mode, no notification will be delivered to |
| 150 * the plugin.) |
| 149 */ | 151 */ |
| 150 void (*ReportTranslationFinished)(PP_Instance instance); | 152 void (*ReportTranslationFinished)(PP_Instance instance, PP_Bool success); |
| 151 /* Return true if we are off the record. | 153 /* Return true if we are off the record. |
| 152 */ | 154 */ |
| 153 PP_Bool (*IsOffTheRecord)(void); | 155 PP_Bool (*IsOffTheRecord)(void); |
| 154 /* Return true if PNaCl is turned on. | 156 /* Return true if PNaCl is turned on. |
| 155 */ | 157 */ |
| 156 PP_Bool (*IsPnaclEnabled)(void); | 158 PP_Bool (*IsPnaclEnabled)(void); |
| 157 /* Display a UI message to the user. */ | 159 /* Display a UI message to the user. */ |
| 158 PP_ExternalPluginResult (*ReportNaClError)(PP_Instance instance, | 160 PP_ExternalPluginResult (*ReportNaClError)(PP_Instance instance, |
| 159 PP_NaClError message_id); | 161 PP_NaClError message_id); |
| 160 /* Opens a NaCl executable file in the application's extension directory | 162 /* Opens a NaCl executable file in the application's extension directory |
| 161 * corresponding to the file URL and returns a file descriptor, or an invalid | 163 * corresponding to the file URL and returns a file descriptor, or an invalid |
| 162 * handle on failure. |metadata| is left unchanged on failure. | 164 * handle on failure. |metadata| is left unchanged on failure. |
| 163 */ | 165 */ |
| 164 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, | 166 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, |
| 165 const char* file_url, | 167 const char* file_url, |
| 166 uint64_t* file_token_lo, | 168 uint64_t* file_token_lo, |
| 167 uint64_t* file_token_hi); | 169 uint64_t* file_token_hi); |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 172 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 171 /** | 173 /** |
| 172 * @} | 174 * @} |
| 173 */ | 175 */ |
| 174 | 176 |
| 175 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 177 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 176 | 178 |
| OLD | NEW |