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 /* This file contains NaCl private interfaces. This interface is not versioned | 6 /* This file contains NaCl private interfaces. This interface is not versioned |
7 * and is for internal Chrome use. It may change without notice. */ | 7 * and is for internal Chrome use. It may change without notice. */ |
8 | 8 |
9 #inline c | 9 #inline c |
10 #include "ppapi/c/private/pp_file_handle.h" | 10 #include "ppapi/c/private/pp_file_handle.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 [in] str_t pexe_url, | 115 [in] str_t pexe_url, |
116 [in] uint32_t abi_version, | 116 [in] uint32_t abi_version, |
117 [in] uint32_t opt_level, | 117 [in] uint32_t opt_level, |
118 [in] str_t last_modified, | 118 [in] str_t last_modified, |
119 [in] str_t etag, | 119 [in] str_t etag, |
120 [out] PP_Bool is_hit, | 120 [out] PP_Bool is_hit, |
121 [out] PP_FileHandle nexe_handle, | 121 [out] PP_FileHandle nexe_handle, |
122 [in] PP_CompletionCallback callback); | 122 [in] PP_CompletionCallback callback); |
123 | 123 |
124 /* Report to the browser that translation of the pexe for |instance| | 124 /* Report to the browser that translation of the pexe for |instance| |
125 * has finished. The browser may then store the translation in the | 125 * has finished, or aborted with an error. If |success| is true, the |
126 * cache. The renderer must first have called GetNexeFd for the same | 126 * browser may then store the translation in the cache. The renderer |
127 * instance. (It is not guaranteed to, however; if there is an error | 127 * must first have called GetNexeFd for the same instance. (The browser is |
128 * or the file is too big for the cache, or the browser is in incognito | 128 * not guaranteed to store the nexe even if |success| is true; if there is |
129 * mode, no notification will be delivered to the plugin.) | 129 * an error on the browser side, or the file is too big for the cache, or |
| 130 * the browser is in incognito mode, no notification will be delivered to |
| 131 * the plugin.) |
130 */ | 132 */ |
131 void ReportTranslationFinished([in] PP_Instance instance); | 133 void ReportTranslationFinished([in] PP_Instance instance, |
| 134 [in] PP_Bool success); |
132 | 135 |
133 /* Return true if we are off the record. | 136 /* Return true if we are off the record. |
134 */ | 137 */ |
135 PP_Bool IsOffTheRecord(); | 138 PP_Bool IsOffTheRecord(); |
136 | 139 |
137 /* Return true if PNaCl is turned on. | 140 /* Return true if PNaCl is turned on. |
138 */ | 141 */ |
139 PP_Bool IsPnaclEnabled(); | 142 PP_Bool IsPnaclEnabled(); |
140 | 143 |
141 /* Display a UI message to the user. */ | 144 /* Display a UI message to the user. */ |
142 PP_ExternalPluginResult ReportNaClError([in] PP_Instance instance, | 145 PP_ExternalPluginResult ReportNaClError([in] PP_Instance instance, |
143 [in] PP_NaClError message_id); | 146 [in] PP_NaClError message_id); |
144 | 147 |
145 /* Opens a NaCl executable file in the application's extension directory | 148 /* Opens a NaCl executable file in the application's extension directory |
146 * corresponding to the file URL and returns a file descriptor, or an invalid | 149 * corresponding to the file URL and returns a file descriptor, or an invalid |
147 * handle on failure. |metadata| is left unchanged on failure. | 150 * handle on failure. |metadata| is left unchanged on failure. |
148 */ | 151 */ |
149 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, | 152 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, |
150 [in] str_t file_url, | 153 [in] str_t file_url, |
151 [out] uint64_t file_token_lo, | 154 [out] uint64_t file_token_lo, |
152 [out] uint64_t file_token_hi); | 155 [out] uint64_t file_token_hi); |
153 }; | 156 }; |
OLD | NEW |