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 Fri Jun 6 10:38:50 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Fri Jun 13 15:14:51 2014. */ |
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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 const char* url, | 438 const char* url, |
439 struct PP_NaClFileInfo* file_info, | 439 struct PP_NaClFileInfo* file_info, |
440 struct PP_CompletionCallback callback); | 440 struct PP_CompletionCallback callback); |
441 /* Reports the status of sel_ldr for UMA reporting. | 441 /* Reports the status of sel_ldr for UMA reporting. |
442 * |max_status| has to be provided because the implementation of this | 442 * |max_status| has to be provided because the implementation of this |
443 * interface can't access the NaClErrorCode enum. | 443 * interface can't access the NaClErrorCode enum. |
444 */ | 444 */ |
445 void (*ReportSelLdrStatus)(PP_Instance instance, | 445 void (*ReportSelLdrStatus)(PP_Instance instance, |
446 int32_t load_status, | 446 int32_t load_status, |
447 int32_t max_status); | 447 int32_t max_status); |
| 448 /* Logs time taken by an operation to UMA histograms. |
| 449 * This function is safe to call on any thread. |
| 450 */ |
| 451 void (*LogTranslateTime)(const char* histogram_name, int64_t time_us); |
448 }; | 452 }; |
449 | 453 |
450 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 454 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
451 /** | 455 /** |
452 * @} | 456 * @} |
453 */ | 457 */ |
454 | 458 |
455 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 459 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
456 | 460 |
OLD | NEW |