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 /* 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 * must first have called GetNexeFd for the same instance. (The browser is | 281 * must first have called GetNexeFd for the same instance. (The browser is |
282 * not guaranteed to store the nexe even if |success| is true; if there is | 282 * not guaranteed to store the nexe even if |success| is true; if there is |
283 * an error on the browser side, or the file is too big for the cache, or | 283 * an error on the browser side, or the file is too big for the cache, or |
284 * the browser is in incognito mode, no notification will be delivered to | 284 * the browser is in incognito mode, no notification will be delivered to |
285 * the plugin.) | 285 * the plugin.) |
286 */ | 286 */ |
287 void ReportTranslationFinished([in] PP_Instance instance, | 287 void ReportTranslationFinished([in] PP_Instance instance, |
288 [in] PP_Bool success, | 288 [in] PP_Bool success, |
289 [in] int32_t opt_level, | 289 [in] int32_t opt_level, |
290 [in] int64_t pexe_size, | 290 [in] int64_t pexe_size, |
291 [in] int64_t compile_time_us, | 291 [in] int64_t compile_time_us); |
292 [in] int64_t total_time_us); | |
293 | 292 |
294 /* Dispatch a progress event on the DOM element where the given instance is | 293 /* Dispatch a progress event on the DOM element where the given instance is |
295 * embedded. | 294 * embedded. |
296 */ | 295 */ |
297 void DispatchEvent([in] PP_Instance instance, | 296 void DispatchEvent([in] PP_Instance instance, |
298 [in] PP_NaClEventType event_type, | 297 [in] PP_NaClEventType event_type, |
299 [in] str_t resource_url, | 298 [in] str_t resource_url, |
300 [in] PP_Bool length_is_computable, | 299 [in] PP_Bool length_is_computable, |
301 [in] uint64_t loaded_bytes, | 300 [in] uint64_t loaded_bytes, |
302 [in] uint64_t total_bytes); | 301 [in] uint64_t total_bytes); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 /* Opens a manifest entry for the given instance. If this is for a helper | 427 /* Opens a manifest entry for the given instance. If this is for a helper |
429 * process, we consult our internal pnacl.json instead of the user-supplied | 428 * process, we consult our internal pnacl.json instead of the user-supplied |
430 * NMF. | 429 * NMF. |
431 * Fails for files which require PNaCl translation. | 430 * Fails for files which require PNaCl translation. |
432 */ | 431 */ |
433 void OpenManifestEntry([in] PP_Instance instance, | 432 void OpenManifestEntry([in] PP_Instance instance, |
434 [in] PP_Bool is_helper_process, | 433 [in] PP_Bool is_helper_process, |
435 [in] str_t key, | 434 [in] str_t key, |
436 [out] PP_NaClFileInfo file_info, | 435 [out] PP_NaClFileInfo file_info, |
437 [in] PP_CompletionCallback callback); | 436 [in] PP_CompletionCallback callback); |
| 437 |
| 438 /* Sets the start time for PNaCl downloading and translation to the current |
| 439 * time. |
| 440 */ |
| 441 void SetPNaClStartTime([in] PP_Instance instance); |
438 }; | 442 }; |
OLD | NEW |