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 Wed Jun 25 11:40:03 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Wed Jun 25 16:42:25 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 * must first have called GetNexeFd for the same instance. (The browser is | 325 * must first have called GetNexeFd for the same instance. (The browser is |
326 * not guaranteed to store the nexe even if |success| is true; if there is | 326 * not guaranteed to store the nexe even if |success| is true; if there is |
327 * an error on the browser side, or the file is too big for the cache, or | 327 * an error on the browser side, or the file is too big for the cache, or |
328 * the browser is in incognito mode, no notification will be delivered to | 328 * the browser is in incognito mode, no notification will be delivered to |
329 * the plugin.) | 329 * the plugin.) |
330 */ | 330 */ |
331 void (*ReportTranslationFinished)(PP_Instance instance, | 331 void (*ReportTranslationFinished)(PP_Instance instance, |
332 PP_Bool success, | 332 PP_Bool success, |
333 int32_t opt_level, | 333 int32_t opt_level, |
334 int64_t pexe_size, | 334 int64_t pexe_size, |
335 int64_t compile_time_us, | 335 int64_t compile_time_us); |
336 int64_t total_time_us); | |
337 /* Dispatch a progress event on the DOM element where the given instance is | 336 /* Dispatch a progress event on the DOM element where the given instance is |
338 * embedded. | 337 * embedded. |
339 */ | 338 */ |
340 void (*DispatchEvent)(PP_Instance instance, | 339 void (*DispatchEvent)(PP_Instance instance, |
341 PP_NaClEventType event_type, | 340 PP_NaClEventType event_type, |
342 const char* resource_url, | 341 const char* resource_url, |
343 PP_Bool length_is_computable, | 342 PP_Bool length_is_computable, |
344 uint64_t loaded_bytes, | 343 uint64_t loaded_bytes, |
345 uint64_t total_bytes); | 344 uint64_t total_bytes); |
346 /* Report that the nexe loaded successfully. */ | 345 /* Report that the nexe loaded successfully. */ |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 /* Opens a manifest entry for the given instance. If this is for a helper | 437 /* Opens a manifest entry for the given instance. If this is for a helper |
439 * process, we consult our internal pnacl.json instead of the user-supplied | 438 * process, we consult our internal pnacl.json instead of the user-supplied |
440 * NMF. | 439 * NMF. |
441 * Fails for files which require PNaCl translation. | 440 * Fails for files which require PNaCl translation. |
442 */ | 441 */ |
443 void (*OpenManifestEntry)(PP_Instance instance, | 442 void (*OpenManifestEntry)(PP_Instance instance, |
444 PP_Bool is_helper_process, | 443 PP_Bool is_helper_process, |
445 const char* key, | 444 const char* key, |
446 struct PP_NaClFileInfo* file_info, | 445 struct PP_NaClFileInfo* file_info, |
447 struct PP_CompletionCallback callback); | 446 struct PP_CompletionCallback callback); |
| 447 /* Sets the start time for PNaCl downloading and translation to the current |
| 448 * time. |
| 449 */ |
| 450 void (*SetPNaClStartTime)(PP_Instance instance); |
448 }; | 451 }; |
449 | 452 |
450 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 453 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
451 /** | 454 /** |
452 * @} | 455 * @} |
453 */ | 456 */ |
454 | 457 |
455 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 458 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
456 | 459 |
OLD | NEW |