| 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 10:32:30 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. (It is not |
| 147 * guaranteed to, however; if there is an error on the browser side |
| 147 * or the file is too big for the cache, or the browser is in incognito | 148 * or the file is too big for the cache, or the browser is in incognito |
| 148 * mode, no notification will be delivered to the plugin.) | 149 * mode, no notification will be delivered to the plugin.) |
| 149 */ | 150 */ |
| 150 void (*ReportTranslationFinished)(PP_Instance instance); | 151 void (*ReportTranslationFinished)(PP_Instance instance, PP_Bool success); |
| 151 /* Return true if we are off the record. | 152 /* Return true if we are off the record. |
| 152 */ | 153 */ |
| 153 PP_Bool (*IsOffTheRecord)(void); | 154 PP_Bool (*IsOffTheRecord)(void); |
| 154 /* Return true if PNaCl is turned on. | 155 /* Return true if PNaCl is turned on. |
| 155 */ | 156 */ |
| 156 PP_Bool (*IsPnaclEnabled)(void); | 157 PP_Bool (*IsPnaclEnabled)(void); |
| 157 /* Display a UI message to the user. */ | 158 /* Display a UI message to the user. */ |
| 158 PP_ExternalPluginResult (*ReportNaClError)(PP_Instance instance, | 159 PP_ExternalPluginResult (*ReportNaClError)(PP_Instance instance, |
| 159 PP_NaClError message_id); | 160 PP_NaClError message_id); |
| 160 /* Opens a NaCl executable file in the application's extension directory | 161 /* 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 | 162 * corresponding to the file URL and returns a file descriptor, or an invalid |
| 162 * handle on failure. |metadata| is left unchanged on failure. | 163 * handle on failure. |metadata| is left unchanged on failure. |
| 163 */ | 164 */ |
| 164 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, | 165 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, |
| 165 const char* file_url, | 166 const char* file_url, |
| 166 uint64_t* file_token_lo, | 167 uint64_t* file_token_lo, |
| 167 uint64_t* file_token_hi); | 168 uint64_t* file_token_hi); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 171 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 171 /** | 172 /** |
| 172 * @} | 173 * @} |
| 173 */ | 174 */ |
| 174 | 175 |
| 175 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 176 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 176 | 177 |
| OLD | NEW |