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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 /* Returns the manifest url as passed as a plugin argument. */ | 382 /* Returns the manifest url as passed as a plugin argument. */ |
383 PP_Var GetManifestURLArgument([in] PP_Instance instance); | 383 PP_Var GetManifestURLArgument([in] PP_Instance instance); |
384 | 384 |
385 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | 385 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); |
386 | 386 |
387 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 387 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
388 [out] PP_Var full_url, | 388 [out] PP_Var full_url, |
389 [out] PP_PNaClOptions pnacl_options, | 389 [out] PP_PNaClOptions pnacl_options, |
390 [out] PP_Bool uses_nonsfi_mode); | 390 [out] PP_Bool uses_nonsfi_mode); |
391 | 391 |
392 PP_Bool ManifestResolveKey([in] PP_Instance instance, | 392 /* Opens a manifest entry for the given instance. If this is for a helper |
393 [in] PP_Bool helper_process, | 393 * process, we consult our internal pnacl.json instead of the user-supplied |
394 [in] str_t key, | 394 * NMF. |
395 [out] PP_Var full_url, | 395 * Fails for files which require PNaCl translation. |
396 [out] PP_PNaClOptions pnacl_options); | 396 */ |
397 void OpenManifestEntry([in] PP_Instance instance, | |
398 [in] PP_Bool helper_process, | |
dmichael (off chromium)
2014/06/02 21:55:30
nit: is_helper_process?
| |
399 [in] str_t key, | |
400 [out] PP_NaClFileInfo file_info, | |
401 [in] PP_CompletionCallback callback); | |
397 | 402 |
398 /* Returns the filenames for the llc and ld tools, parsing that information | 403 /* Returns the filenames for the llc and ld tools, parsing that information |
399 * from the file given in |filename|. | 404 * from the file given in |filename|. |
400 */ | 405 */ |
401 PP_Bool GetPnaclResourceInfo([in] PP_Instance instance, | 406 PP_Bool GetPnaclResourceInfo([in] PP_Instance instance, |
402 [in] str_t filename, | 407 [in] str_t filename, |
403 [out] PP_Var llc_tool_name, | 408 [out] PP_Var llc_tool_name, |
404 [out] PP_Var ld_tool_name); | 409 [out] PP_Var ld_tool_name); |
405 | 410 |
406 // PP_Var string of attributes describing the CPU features supported | 411 // PP_Var string of attributes describing the CPU features supported |
(...skipping 10 matching lines...) Expand all Loading... | |
417 | 422 |
418 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| | 423 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| |
419 * to information for a handle to a file containing its contents. | 424 * to information for a handle to a file containing its contents. |
420 * If metadata for identity-based validation caching is available | 425 * If metadata for identity-based validation caching is available |
421 * then it sets token information in |file_info| (otherwise left untouched). | 426 * then it sets token information in |file_info| (otherwise left untouched). |
422 */ | 427 */ |
423 void DownloadNexe([in] PP_Instance instance, | 428 void DownloadNexe([in] PP_Instance instance, |
424 [in] str_t url, | 429 [in] str_t url, |
425 [out] PP_NaClFileInfo file_info, | 430 [out] PP_NaClFileInfo file_info, |
426 [in] PP_CompletionCallback callback); | 431 [in] PP_CompletionCallback callback); |
427 | |
428 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| | |
429 * to corresponding information about the file. */ | |
430 void DownloadFile([in] PP_Instance instance, | |
431 [in] str_t url, | |
432 [out] PP_NaClFileInfo file_info, | |
433 [in] PP_CompletionCallback callback); | |
434 }; | 432 }; |
OLD | NEW |