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

Side by Side Diff: components/nacl/renderer/ppb_nacl_private.h

Issue 1090233003: Set up a NaCl load status callback to start replacing "start_module". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use the enum instead of int Created 5 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
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 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ 5 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_
6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ 6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 struct PP_Var (*GetCpuFeatureAttrs)(void); 319 struct PP_Var (*GetCpuFeatureAttrs)(void);
320 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| 320 /* Downloads the .nexe file at the given URL to a file, and sets |file_info|
321 * to information for a handle to a file containing its contents. 321 * to information for a handle to a file containing its contents.
322 * If metadata for identity-based validation caching is available 322 * If metadata for identity-based validation caching is available
323 * then it sets token information in |file_info| (otherwise left untouched). 323 * then it sets token information in |file_info| (otherwise left untouched).
324 */ 324 */
325 void (*DownloadNexe)(PP_Instance instance, 325 void (*DownloadNexe)(PP_Instance instance,
326 const char* url, 326 const char* url,
327 struct PP_NaClFileInfo* file_info, 327 struct PP_NaClFileInfo* file_info,
328 struct PP_CompletionCallback callback); 328 struct PP_CompletionCallback callback);
329 /* Reports the status of sel_ldr for UMA reporting.
330 * |max_status| has to be provided because the implementation of this
331 * interface can't access the NaClErrorCode enum.
332 */
333 void (*ReportSelLdrStatus)(PP_Instance instance,
334 int32_t load_status,
335 int32_t max_status);
336 /* Logs time taken by an operation to UMA histograms. 329 /* Logs time taken by an operation to UMA histograms.
337 * This function is safe to call on any thread. 330 * This function is safe to call on any thread.
338 */ 331 */
339 void (*LogTranslateTime)(const char* histogram_name, int64_t time_us); 332 void (*LogTranslateTime)(const char* histogram_name, int64_t time_us);
340 /* Logs amount of pexe bytes compiled when download is complete. */ 333 /* Logs amount of pexe bytes compiled when download is complete. */
341 void (*LogBytesCompiledVsDownloaded)(PP_Bool use_subzero, 334 void (*LogBytesCompiledVsDownloaded)(PP_Bool use_subzero,
342 int64_t pexe_bytes_compiled, 335 int64_t pexe_bytes_compiled,
343 int64_t pexe_bytes_downloaded); 336 int64_t pexe_bytes_downloaded);
344 /* Sets the start time for PNaCl downloading and translation to the current 337 /* Sets the start time for PNaCl downloading and translation to the current
345 * time. 338 * time.
(...skipping 12 matching lines...) Expand all
358 int32_t opt_level, 351 int32_t opt_level,
359 PP_Bool use_subzero, 352 PP_Bool use_subzero,
360 const struct PPP_PexeStreamHandler_1_0* stream_handler, 353 const struct PPP_PexeStreamHandler_1_0* stream_handler,
361 void* stream_handler_user_data); 354 void* stream_handler_user_data);
362 }; 355 };
363 /** 356 /**
364 * @} 357 * @}
365 */ 358 */
366 359
367 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ 360 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */
368
OLDNEW
« no previous file with comments | « components/nacl/renderer/plugin/service_runtime.cc ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698