| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 /* Initializes internal state for a NaCl plugin. */ | 372 /* Initializes internal state for a NaCl plugin. */ |
| 373 void InitializePlugin([in] PP_Instance instance, | 373 void InitializePlugin([in] PP_Instance instance, |
| 374 [in] uint32_t argc, | 374 [in] uint32_t argc, |
| 375 [in, size_as=argc] str_t[] argn, | 375 [in, size_as=argc] str_t[] argn, |
| 376 [in, size_as=argv] str_t[] argv); | 376 [in, size_as=argv] str_t[] argv); |
| 377 | 377 |
| 378 /* Returns the size of the nexe. */ | 378 /* Returns the size of the nexe. */ |
| 379 int64_t GetNexeSize([in] PP_Instance instance); | 379 int64_t GetNexeSize([in] PP_Instance instance); |
| 380 | 380 |
| 381 /* Performs accounting for requesting the NaCl manifest at the given URL. */ | 381 /* Performs accounting for requesting the NaCl manifest at the given URL. */ |
| 382 PP_Bool RequestNaClManifest([in] PP_Instance instance, | 382 void RequestNaClManifest([in] PP_Instance instance, |
| 383 [in] str_t manifest_url, | 383 [in] str_t manifest_url, |
| 384 [out] PP_Bool is_data_uri); | 384 [out] PP_Var manifest_data, |
| 385 [in] PP_CompletionCallback callback); |
| 385 | 386 |
| 386 PP_Var GetManifestBaseURL([in] PP_Instance instance); | 387 PP_Var GetManifestBaseURL([in] PP_Instance instance); |
| 387 | 388 |
| 388 PP_Bool ResolvesRelativeToPluginBaseUrl([in] PP_Instance instance, | 389 PP_Bool ResolvesRelativeToPluginBaseUrl([in] PP_Instance instance, |
| 389 [in] str_t url); | 390 [in] str_t url); |
| 390 | 391 |
| 391 /* Returns the parsed contents of a data URL. */ | |
| 392 PP_Var ParseDataURL([in] str_t data_url); | |
| 393 | |
| 394 /* Processes the NaCl manifest once it's been retrieved. | 392 /* Processes the NaCl manifest once it's been retrieved. |
| 395 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 393 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
| 396 * plugin. | 394 * plugin. |
| 397 */ | 395 */ |
| 398 void ProcessNaClManifest([in] PP_Instance instance, | 396 void ProcessNaClManifest([in] PP_Instance instance, |
| 399 [in] str_t program_url); | 397 [in] str_t program_url); |
| 400 | 398 |
| 401 /* Returns the manifest url as passed as a plugin argument. */ | 399 /* Returns the manifest url as passed as a plugin argument. */ |
| 402 PP_Var GetManifestURLArgument([in] PP_Instance instance); | 400 PP_Var GetManifestURLArgument([in] PP_Instance instance); |
| 403 | 401 |
| 404 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | 402 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); |
| 405 | 403 |
| 406 /* Downloads the manifest into the buffer |data|, invoking | |
| 407 * |callback| when finished. | |
| 408 * TODO(teravest): Merge data URL parsing into this. */ | |
| 409 void DownloadManifestToBuffer([in] PP_Instance instance, | |
| 410 [out] PP_Var data, | |
| 411 [in] PP_CompletionCallback callback); | |
| 412 | |
| 413 int32_t CreatePnaclManifest([in] PP_Instance instance); | 404 int32_t CreatePnaclManifest([in] PP_Instance instance); |
| 414 int32_t CreateJsonManifest([in] PP_Instance instance, | 405 int32_t CreateJsonManifest([in] PP_Instance instance, |
| 415 [in] str_t manifest_base_url, | 406 [in] str_t manifest_base_url, |
| 416 [in] str_t manifest_data); | 407 [in] str_t manifest_data); |
| 417 | 408 |
| 418 void DestroyManifest([in] PP_Instance instance, | 409 void DestroyManifest([in] PP_Instance instance, |
| 419 [in] int32_t manifest_id); | 410 [in] int32_t manifest_id); |
| 420 | 411 |
| 421 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 412 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
| 422 [in] int32_t manifest_id, | 413 [in] int32_t manifest_id, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 443 // of attributes supported by LLVM in its -mattr= option: | 434 // of attributes supported by LLVM in its -mattr= option: |
| 444 // http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr | 435 // http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr |
| 445 PP_Var GetCpuFeatureAttrs(); | 436 PP_Var GetCpuFeatureAttrs(); |
| 446 | 437 |
| 447 /* Posts a message to the JavaScript object for the given instance. | 438 /* Posts a message to the JavaScript object for the given instance. |
| 448 * This method may be called on any thread. | 439 * This method may be called on any thread. |
| 449 */ | 440 */ |
| 450 void PostMessageToJavaScript([in] PP_Instance instance, | 441 void PostMessageToJavaScript([in] PP_Instance instance, |
| 451 [in] str_t message); | 442 [in] str_t message); |
| 452 }; | 443 }; |
| OLD | NEW |