| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 /* Performs internal cleanup when an instance is destroyed. */ | 339 /* Performs internal cleanup when an instance is destroyed. */ |
| 340 void InstanceDestroyed([in] PP_Instance instance); | 340 void InstanceDestroyed([in] PP_Instance instance); |
| 341 | 341 |
| 342 /* Return true if the NaCl debug stub is enabled and the app loaded from | 342 /* Return true if the NaCl debug stub is enabled and the app loaded from |
| 343 * alleged_nmf_url will be attached to a debugger. | 343 * alleged_nmf_url will be attached to a debugger. |
| 344 */ | 344 */ |
| 345 PP_Bool NaClDebugEnabledForURL([in] str_t alleged_nmf_url); | 345 PP_Bool NaClDebugEnabledForURL([in] str_t alleged_nmf_url); |
| 346 | 346 |
| 347 /* Returns the kind of SFI sandbox implemented by NaCl on this | 347 /* Returns the kind of SFI sandbox implemented by NaCl on this |
| 348 /* platform. | 348 * platform. |
| 349 */ | 349 */ |
| 350 str_t GetSandboxArch(); | 350 str_t GetSandboxArch(); |
| 351 | 351 |
| 352 /* Logs the message to the console. */ | 352 /* Logs the message to the console. */ |
| 353 void LogToConsole([in] PP_Instance instance, | 353 void LogToConsole([in] PP_Instance instance, |
| 354 [in] str_t message); | 354 [in] str_t message); |
| 355 | 355 |
| 356 /* Returns the NaCl readiness status for this instance. */ | 356 /* Returns the NaCl readiness status for this instance. */ |
| 357 PP_NaClReadyState GetNaClReadyState([in] PP_Instance instance); | 357 PP_NaClReadyState GetNaClReadyState([in] PP_Instance instance); |
| 358 | 358 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 /* Processes the NaCl manifest once it's been retrieved. | 394 /* Processes the NaCl manifest once it's been retrieved. |
| 395 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 395 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
| 396 * plugin. | 396 * plugin. |
| 397 */ | 397 */ |
| 398 void ProcessNaClManifest([in] PP_Instance instance, | 398 void ProcessNaClManifest([in] PP_Instance instance, |
| 399 [in] str_t program_url); | 399 [in] str_t program_url); |
| 400 | 400 |
| 401 /* Returns the manifest url as passed as a plugin argument. */ | 401 /* Returns the manifest url as passed as a plugin argument. */ |
| 402 PP_Var GetManifestURLArgument([in] PP_Instance instance); | 402 PP_Var GetManifestURLArgument([in] PP_Instance instance); |
| 403 | 403 |
| 404 PP_Bool IsPNaCl([in] PP_Instance instance); | |
| 405 | |
| 406 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | 404 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); |
| 407 | 405 |
| 408 /* Downloads the manifest into the buffer |data|, invoking | 406 /* Downloads the manifest into the buffer |data|, invoking |
| 409 * |callback| when finished. | 407 * |callback| when finished. |
| 410 * TODO(teravest): Merge data URL parsing into this. */ | 408 * TODO(teravest): Merge data URL parsing into this. */ |
| 411 void DownloadManifestToBuffer([in] PP_Instance instance, | 409 void DownloadManifestToBuffer([in] PP_Instance instance, |
| 412 [out] PP_Var data, | 410 [out] PP_Var data, |
| 413 [in] PP_CompletionCallback callback); | 411 [in] PP_CompletionCallback callback); |
| 414 | 412 |
| 415 int32_t CreatePnaclManifest([in] PP_Instance instance); | 413 int32_t CreatePnaclManifest([in] PP_Instance instance); |
| 416 int32_t CreateJsonManifest([in] PP_Instance instance, | 414 int32_t CreateJsonManifest([in] PP_Instance instance, |
| 417 [in] str_t manifest_base_url, | 415 [in] str_t manifest_base_url, |
| 418 [in] str_t sandbox_isa, | |
| 419 [in] str_t manifest_data); | 416 [in] str_t manifest_data); |
| 420 | 417 |
| 421 void DestroyManifest([in] PP_Instance instance, | 418 void DestroyManifest([in] PP_Instance instance, |
| 422 [in] int32_t manifest_id); | 419 [in] int32_t manifest_id); |
| 423 | 420 |
| 424 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 421 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
| 425 [in] int32_t manifest_id, | 422 [in] int32_t manifest_id, |
| 426 [out] PP_Var full_url, | 423 [out] PP_Var full_url, |
| 427 [out] PP_PNaClOptions pnacl_options, | 424 [out] PP_PNaClOptions pnacl_options, |
| 428 [out] PP_Bool uses_nonsfi_mode); | 425 [out] PP_Bool uses_nonsfi_mode); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 446 // of attributes supported by LLVM in its -mattr= option: | 443 // of attributes supported by LLVM in its -mattr= option: |
| 447 // http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr | 444 // http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr |
| 448 PP_Var GetCpuFeatureAttrs(); | 445 PP_Var GetCpuFeatureAttrs(); |
| 449 | 446 |
| 450 /* Posts a message to the JavaScript object for the given instance. | 447 /* Posts a message to the JavaScript object for the given instance. |
| 451 * This method may be called on any thread. | 448 * This method may be called on any thread. |
| 452 */ | 449 */ |
| 453 void PostMessageToJavaScript([in] PP_Instance instance, | 450 void PostMessageToJavaScript([in] PP_Instance instance, |
| 454 [in] str_t message); | 451 [in] str_t message); |
| 455 }; | 452 }; |
| OLD | NEW |