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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 [in] uint32_t argc, | 361 [in] uint32_t argc, |
362 [in, size_as=argc] str_t[] argn, | 362 [in, size_as=argc] str_t[] argn, |
363 [in, size_as=argv] str_t[] argv); | 363 [in, size_as=argv] str_t[] argv); |
364 | 364 |
365 /* Returns the size of the nexe. */ | 365 /* Returns the size of the nexe. */ |
366 int64_t GetNexeSize([in] PP_Instance instance); | 366 int64_t GetNexeSize([in] PP_Instance instance); |
367 | 367 |
368 /* Performs accounting for requesting the NaCl manifest at the given URL. */ | 368 /* Performs accounting for requesting the NaCl manifest at the given URL. */ |
369 void RequestNaClManifest([in] PP_Instance instance, | 369 void RequestNaClManifest([in] PP_Instance instance, |
370 [in] str_t manifest_url, | 370 [in] str_t manifest_url, |
371 [out] int32_t manifest_id, | |
372 [in] PP_CompletionCallback callback); | 371 [in] PP_CompletionCallback callback); |
373 | 372 |
374 PP_Var GetManifestBaseURL([in] PP_Instance instance); | 373 PP_Var GetManifestBaseURL([in] PP_Instance instance); |
375 | 374 |
376 /* Processes the NaCl manifest once it's been retrieved. | 375 /* Processes the NaCl manifest once it's been retrieved. |
377 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 376 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
378 * plugin. | 377 * plugin. |
379 */ | 378 */ |
380 void ProcessNaClManifest([in] PP_Instance instance, | 379 void ProcessNaClManifest([in] PP_Instance instance, |
381 [in] str_t program_url); | 380 [in] str_t program_url); |
382 | 381 |
383 /* Returns the manifest url as passed as a plugin argument. */ | 382 /* Returns the manifest url as passed as a plugin argument. */ |
384 PP_Var GetManifestURLArgument([in] PP_Instance instance); | 383 PP_Var GetManifestURLArgument([in] PP_Instance instance); |
385 | 384 |
386 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | 385 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); |
387 | 386 |
388 int32_t CreatePnaclManifest([in] PP_Instance instance); | |
389 | |
390 void DestroyManifest([in] PP_Instance instance, | |
391 [in] int32_t manifest_id); | |
392 | |
393 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 387 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
394 [in] int32_t manifest_id, | |
395 [out] PP_Var full_url, | 388 [out] PP_Var full_url, |
396 [out] PP_PNaClOptions pnacl_options, | 389 [out] PP_PNaClOptions pnacl_options, |
397 [out] PP_Bool uses_nonsfi_mode); | 390 [out] PP_Bool uses_nonsfi_mode); |
398 | 391 |
399 PP_Bool ManifestResolveKey([in] PP_Instance instance, | 392 PP_Bool ManifestResolveKey([in] PP_Instance instance, |
400 [in] int32_t manifest_id, | 393 [in] PP_Bool helper_process, |
401 [in] str_t key, | 394 [in] str_t key, |
402 [out] PP_Var full_url, | 395 [out] PP_Var full_url, |
403 [out] PP_PNaClOptions pnacl_options); | 396 [out] PP_PNaClOptions pnacl_options); |
404 | 397 |
405 /* Returns the filenames for the llc and ld tools, parsing that information | 398 /* Returns the filenames for the llc and ld tools, parsing that information |
406 * from the file given in |filename|. | 399 * from the file given in |filename|. |
407 */ | 400 */ |
408 PP_Bool GetPnaclResourceInfo([in] PP_Instance instance, | 401 PP_Bool GetPnaclResourceInfo([in] PP_Instance instance, |
409 [in] str_t filename, | 402 [in] str_t filename, |
410 [out] PP_Var llc_tool_name, | 403 [out] PP_Var llc_tool_name, |
(...skipping 21 matching lines...) Expand all Loading... |
432 [out] PP_NaClFileInfo file_info, | 425 [out] PP_NaClFileInfo file_info, |
433 [in] PP_CompletionCallback callback); | 426 [in] PP_CompletionCallback callback); |
434 | 427 |
435 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| | 428 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| |
436 * to corresponding information about the file. */ | 429 * to corresponding information about the file. */ |
437 void DownloadFile([in] PP_Instance instance, | 430 void DownloadFile([in] PP_Instance instance, |
438 [in] str_t url, | 431 [in] str_t url, |
439 [out] PP_NaClFileInfo file_info, | 432 [out] PP_NaClFileInfo file_info, |
440 [in] PP_CompletionCallback callback); | 433 [in] PP_CompletionCallback callback); |
441 }; | 434 }; |
OLD | NEW |