Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1433)

Side by Side Diff: ppapi/api/private/ppb_nacl_private.idl

Issue 22309007: Add success status to ReportTranslationFinished in ppb_nacl_private and IPC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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. (It is not
128 * guaranteed to, however; if there is an error on the browser side
jvoung (off chromium) 2013/08/06 18:35:28 I forget, what was this last part of the comment a
dmichael (off chromium) 2013/08/06 18:53:58 nit: probably should have a comma after "on the br
Derek Schuff 2013/08/06 21:21:13 Clarified.
Derek Schuff 2013/08/06 21:21:13 Done.
128 * or the file is too big for the cache, or the browser is in incognito 129 * or the file is too big for the cache, or the browser is in incognito
129 * mode, no notification will be delivered to the plugin.) 130 * mode, no notification will be delivered to the plugin.)
130 */ 131 */
131 void ReportTranslationFinished([in] PP_Instance instance); 132 void ReportTranslationFinished([in] PP_Instance instance,
133 [in] PP_Bool success);
132 134
133 /* Return true if we are off the record. 135 /* Return true if we are off the record.
134 */ 136 */
135 PP_Bool IsOffTheRecord(); 137 PP_Bool IsOffTheRecord();
136 138
137 /* Return true if PNaCl is turned on. 139 /* Return true if PNaCl is turned on.
138 */ 140 */
139 PP_Bool IsPnaclEnabled(); 141 PP_Bool IsPnaclEnabled();
140 142
141 /* Display a UI message to the user. */ 143 /* Display a UI message to the user. */
142 PP_ExternalPluginResult ReportNaClError([in] PP_Instance instance, 144 PP_ExternalPluginResult ReportNaClError([in] PP_Instance instance,
143 [in] PP_NaClError message_id); 145 [in] PP_NaClError message_id);
144 146
145 /* Opens a NaCl executable file in the application's extension directory 147 /* 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 148 * corresponding to the file URL and returns a file descriptor, or an invalid
147 * handle on failure. |metadata| is left unchanged on failure. 149 * handle on failure. |metadata| is left unchanged on failure.
148 */ 150 */
149 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, 151 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance,
150 [in] str_t file_url, 152 [in] str_t file_url,
151 [out] uint64_t file_token_lo, 153 [out] uint64_t file_token_lo,
152 [out] uint64_t file_token_hi); 154 [out] uint64_t file_token_hi);
153 }; 155 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698