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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 void ReportSelLdrStatus([in] PP_Instance instance, | 316 void ReportSelLdrStatus([in] PP_Instance instance, |
317 [in] int32_t load_status, | 317 [in] int32_t load_status, |
318 [in] int32_t max_status); | 318 [in] int32_t max_status); |
319 | 319 |
320 /* Logs time taken by an operation to UMA histograms. | 320 /* Logs time taken by an operation to UMA histograms. |
321 * This function is safe to call on any thread. | 321 * This function is safe to call on any thread. |
322 */ | 322 */ |
323 void LogTranslateTime([in] str_t histogram_name, | 323 void LogTranslateTime([in] str_t histogram_name, |
324 [in] int64_t time_us); | 324 [in] int64_t time_us); |
325 | 325 |
326 /* Opens a manifest entry for the given instance. If this is for a helper | |
327 * process, we consult our internal pnacl.json instead of the user-supplied | |
328 * NMF. | |
329 * Fails for files which require PNaCl translation. | |
330 */ | |
331 void OpenManifestEntry([in] PP_Instance instance, | |
332 [in] PP_Bool is_helper_process, | |
333 [in] str_t key, | |
334 [out] PP_NaClFileInfo file_info, | |
335 [in] PP_CompletionCallback callback); | |
336 | |
337 /* Sets the start time for PNaCl downloading and translation to the current | 326 /* Sets the start time for PNaCl downloading and translation to the current |
338 * time. | 327 * time. |
339 */ | 328 */ |
340 void SetPNaClStartTime([in] PP_Instance instance); | 329 void SetPNaClStartTime([in] PP_Instance instance); |
341 | 330 |
342 /* Downloads and streams a pexe file for PNaCl translation. | 331 /* Downloads and streams a pexe file for PNaCl translation. |
343 * Fetches the content at |pexe_url| for the given instance and opt_level. | 332 * Fetches the content at |pexe_url| for the given instance and opt_level. |
344 * If a translated cached nexe is already available, |cache_hit_handle| | 333 * If a translated cached nexe is already available, |cache_hit_handle| |
345 * is set and |cache_hit_callback| is called. | 334 * is set and |cache_hit_callback| is called. |
346 * Otherwise, |stream_callback| is called repeatedly with blocks of data | 335 * Otherwise, |stream_callback| is called repeatedly with blocks of data |
347 * as they are received. |stream_finished_callback| is called after all | 336 * as they are received. |stream_finished_callback| is called after all |
348 * data has been received and dispatched to |stream_callback|. | 337 * data has been received and dispatched to |stream_callback|. |
349 */ | 338 */ |
350 void StreamPexe([in] PP_Instance instance, | 339 void StreamPexe([in] PP_Instance instance, |
351 [in] str_t pexe_url, | 340 [in] str_t pexe_url, |
352 [in] int32_t opt_level, | 341 [in] int32_t opt_level, |
353 [in] PPP_PexeStreamHandler stream_handler, | 342 [in] PPP_PexeStreamHandler stream_handler, |
354 [inout] mem_t stream_handler_user_data); | 343 [inout] mem_t stream_handler_user_data); |
355 }; | 344 }; |
OLD | NEW |