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

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

Issue 231243002: PPAPI: Move some of NexeFileDidOpen to NexeLoadManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix crash Created 6 years, 8 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
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/ppb_nacl_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 label Chrome { 9 label Chrome {
10 M25 = 1.0 10 M25 = 1.0
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 /* Dispatch a progress event on the DOM element where the given instance is 264 /* Dispatch a progress event on the DOM element where the given instance is
265 * embedded. 265 * embedded.
266 */ 266 */
267 void DispatchEvent([in] PP_Instance instance, 267 void DispatchEvent([in] PP_Instance instance,
268 [in] PP_NaClEventType event_type, 268 [in] PP_NaClEventType event_type,
269 [in] str_t resource_url, 269 [in] str_t resource_url,
270 [in] PP_Bool length_is_computable, 270 [in] PP_Bool length_is_computable,
271 [in] uint64_t loaded_bytes, 271 [in] uint64_t loaded_bytes,
272 [in] uint64_t total_bytes); 272 [in] uint64_t total_bytes);
273 273
274 /* Report that the attempt to open the nexe has finished. Opening the file
275 * may have failed, as indicated by a pp_error value that is not PP_OK or an
276 * fd of -1. Failure to stat the file to determine its length results in
277 * nexe_bytes_read being -1.
278 */
279 void NexeFileDidOpen([in] PP_Instance instance,
280 [in] int32_t pp_error,
281 [in] int32_t fd,
282 [in] int32_t http_status,
283 [in] int64_t nexe_bytes_read,
284 [in] str_t url);
285
274 /* Report that the nexe loaded successfully. */ 286 /* Report that the nexe loaded successfully. */
275 void ReportLoadSuccess([in] PP_Instance instance, 287 void ReportLoadSuccess([in] PP_Instance instance,
276 [in] str_t url, 288 [in] str_t url,
277 [in] uint64_t loaded_bytes, 289 [in] uint64_t loaded_bytes,
278 [in] uint64_t total_bytes); 290 [in] uint64_t total_bytes);
279 291
280 /* Report an error that occured while attempting to load a nexe. */ 292 /* Report an error that occured while attempting to load a nexe. */
281 void ReportLoadError([in] PP_Instance instance, 293 void ReportLoadError([in] PP_Instance instance,
282 [in] PP_NaClError error, 294 [in] PP_NaClError error,
283 [in] str_t error_message, 295 [in] str_t error_message,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 /* Sets the time the plugin was initialized. */ 355 /* Sets the time the plugin was initialized. */
344 void SetInitTime([in] PP_Instance instance); 356 void SetInitTime([in] PP_Instance instance);
345 357
346 /* Returns the size of the nexe. */ 358 /* Returns the size of the nexe. */
347 int64_t GetNexeSize([in] PP_Instance instance); 359 int64_t GetNexeSize([in] PP_Instance instance);
348 360
349 /* Sets the size of the nexe. */ 361 /* Sets the size of the nexe. */
350 void SetNexeSize([in] PP_Instance instance, 362 void SetNexeSize([in] PP_Instance instance,
351 [in] int64_t nexe_size); 363 [in] int64_t nexe_size);
352 }; 364 };
OLDNEW
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/ppb_nacl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698