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] PP_Var manifest_data, | 371 [out] int32_t manifest_id, |
372 [in] PP_CompletionCallback callback); | 372 [in] PP_CompletionCallback callback); |
373 | 373 |
374 PP_Var GetManifestBaseURL([in] PP_Instance instance); | 374 PP_Var GetManifestBaseURL([in] PP_Instance instance); |
375 | 375 |
376 PP_Bool ResolvesRelativeToPluginBaseUrl([in] PP_Instance instance, | 376 PP_Bool ResolvesRelativeToPluginBaseUrl([in] PP_Instance instance, |
377 [in] str_t url); | 377 [in] str_t url); |
378 | 378 |
379 /* Processes the NaCl manifest once it's been retrieved. | 379 /* Processes the NaCl manifest once it's been retrieved. |
380 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 380 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
381 * plugin. | 381 * plugin. |
382 */ | 382 */ |
383 void ProcessNaClManifest([in] PP_Instance instance, | 383 void ProcessNaClManifest([in] PP_Instance instance, |
384 [in] str_t program_url); | 384 [in] str_t program_url); |
385 | 385 |
386 /* Returns the manifest url as passed as a plugin argument. */ | 386 /* Returns the manifest url as passed as a plugin argument. */ |
387 PP_Var GetManifestURLArgument([in] PP_Instance instance); | 387 PP_Var GetManifestURLArgument([in] PP_Instance instance); |
388 | 388 |
389 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | 389 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); |
390 | 390 |
391 int32_t CreatePnaclManifest([in] PP_Instance instance); | 391 int32_t CreatePnaclManifest([in] PP_Instance instance); |
392 int32_t CreateJsonManifest([in] PP_Instance instance, | |
393 [in] str_t manifest_base_url, | |
394 [in] str_t manifest_data); | |
395 | 392 |
396 void DestroyManifest([in] PP_Instance instance, | 393 void DestroyManifest([in] PP_Instance instance, |
397 [in] int32_t manifest_id); | 394 [in] int32_t manifest_id); |
398 | 395 |
399 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 396 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
400 [in] int32_t manifest_id, | 397 [in] int32_t manifest_id, |
401 [out] PP_Var full_url, | 398 [out] PP_Var full_url, |
402 [out] PP_PNaClOptions pnacl_options, | 399 [out] PP_PNaClOptions pnacl_options, |
403 [out] PP_Bool uses_nonsfi_mode); | 400 [out] PP_Bool uses_nonsfi_mode); |
404 | 401 |
(...skipping 23 matching lines...) Expand all Loading... |
428 void PostMessageToJavaScript([in] PP_Instance instance, | 425 void PostMessageToJavaScript([in] PP_Instance instance, |
429 [in] str_t message); | 426 [in] str_t message); |
430 | 427 |
431 /* Downloads the .nexe file at the given URL to a file, and sets |handle| | 428 /* Downloads the .nexe file at the given URL to a file, and sets |handle| |
432 * to a handle to a file containing its contents. */ | 429 * to a handle to a file containing its contents. */ |
433 void DownloadNexe([in] PP_Instance instance, | 430 void DownloadNexe([in] PP_Instance instance, |
434 [in] str_t url, | 431 [in] str_t url, |
435 [out] PP_FileHandle handle, | 432 [out] PP_FileHandle handle, |
436 [in] PP_CompletionCallback callback); | 433 [in] PP_CompletionCallback callback); |
437 }; | 434 }; |
OLD | NEW |