| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 */ | 336 */ |
| 337 str_t GetSandboxArch(); | 337 str_t GetSandboxArch(); |
| 338 | 338 |
| 339 /* Logs the message to the console. */ | 339 /* Logs the message to the console. */ |
| 340 void LogToConsole([in] PP_Instance instance, | 340 void LogToConsole([in] PP_Instance instance, |
| 341 [in] str_t message); | 341 [in] str_t message); |
| 342 | 342 |
| 343 /* Returns the NaCl readiness status for this instance. */ | 343 /* Returns the NaCl readiness status for this instance. */ |
| 344 PP_NaClReadyState GetNaClReadyState([in] PP_Instance instance); | 344 PP_NaClReadyState GetNaClReadyState([in] PP_Instance instance); |
| 345 | 345 |
| 346 /* Returns true if the plugin is an installed app. */ | |
| 347 PP_Bool GetIsInstalled([in] PP_Instance instance); | |
| 348 | |
| 349 /* Returns the exit status of the plugin process. */ | 346 /* Returns the exit status of the plugin process. */ |
| 350 int32_t GetExitStatus([in] PP_Instance instance); | 347 int32_t GetExitStatus([in] PP_Instance instance); |
| 351 | 348 |
| 352 /* Sets the exit status of the plugin process. */ | 349 /* Sets the exit status of the plugin process. */ |
| 353 void SetExitStatus([in] PP_Instance instance, | 350 void SetExitStatus([in] PP_Instance instance, |
| 354 [in] int32_t exit_status); | 351 [in] int32_t exit_status); |
| 355 | 352 |
| 356 /* Logs the message via VLOG. */ | 353 /* Logs the message via VLOG. */ |
| 357 void Vlog([in] str_t message); | 354 void Vlog([in] str_t message); |
| 358 | 355 |
| 359 /* Initializes internal state for a NaCl plugin. */ | 356 /* Initializes internal state for a NaCl plugin. */ |
| 360 void InitializePlugin([in] PP_Instance instance, | 357 void InitializePlugin([in] PP_Instance instance, |
| 361 [in] uint32_t argc, | 358 [in] uint32_t argc, |
| 362 [in, size_as=argc] str_t[] argn, | 359 [in, size_as=argc] str_t[] argn, |
| 363 [in, size_as=argv] str_t[] argv); | 360 [in, size_as=argv] str_t[] argv); |
| 364 | 361 |
| 365 /* Returns the size of the nexe. */ | 362 /* Returns the size of the nexe. */ |
| 366 int64_t GetNexeSize([in] PP_Instance instance); | 363 int64_t GetNexeSize([in] PP_Instance instance); |
| 367 | 364 |
| 368 /* Performs accounting for requesting the NaCl manifest at the given URL. */ | 365 /* Requests the NaCl manifest specified in the plugin arguments. */ |
| 369 void RequestNaClManifest([in] PP_Instance instance, | 366 void RequestNaClManifest([in] PP_Instance instance, |
| 370 [in] str_t manifest_url, | |
| 371 [in] PP_CompletionCallback callback); | 367 [in] PP_CompletionCallback callback); |
| 372 | 368 |
| 373 PP_Var GetManifestBaseURL([in] PP_Instance instance); | 369 PP_Var GetManifestBaseURL([in] PP_Instance instance); |
| 374 | 370 |
| 375 /* Processes the NaCl manifest once it's been retrieved. | 371 /* Processes the NaCl manifest once it's been retrieved. |
| 376 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 372 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
| 377 * plugin. | 373 * plugin. |
| 378 */ | 374 */ |
| 379 void ProcessNaClManifest([in] PP_Instance instance, | 375 void ProcessNaClManifest([in] PP_Instance instance, |
| 380 [in] str_t program_url); | 376 [in] str_t program_url); |
| 381 | 377 |
| 382 /* Returns the manifest url as passed as a plugin argument. */ | |
| 383 PP_Var GetManifestURLArgument([in] PP_Instance instance); | |
| 384 | |
| 385 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | 378 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); |
| 386 | 379 |
| 387 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 380 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
| 388 [out] PP_Var full_url, | 381 [out] PP_Var full_url, |
| 389 [out] PP_PNaClOptions pnacl_options, | 382 [out] PP_PNaClOptions pnacl_options, |
| 390 [out] PP_Bool uses_nonsfi_mode); | 383 [out] PP_Bool uses_nonsfi_mode); |
| 391 | 384 |
| 392 PP_Bool ManifestResolveKey([in] PP_Instance instance, | 385 PP_Bool ManifestResolveKey([in] PP_Instance instance, |
| 393 [in] PP_Bool helper_process, | 386 [in] PP_Bool helper_process, |
| 394 [in] str_t key, | 387 [in] str_t key, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 424 [in] str_t url, | 417 [in] str_t url, |
| 425 [out] PP_NaClFileInfo file_info, | 418 [out] PP_NaClFileInfo file_info, |
| 426 [in] PP_CompletionCallback callback); | 419 [in] PP_CompletionCallback callback); |
| 427 | 420 |
| 428 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| | 421 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| |
| 429 * to corresponding information about the file. */ | 422 * to corresponding information about the file. */ |
| 430 void DownloadFile([in] PP_Instance instance, | 423 void DownloadFile([in] PP_Instance instance, |
| 431 [in] str_t url, | 424 [in] str_t url, |
| 432 [out] PP_NaClFileInfo file_info, | 425 [out] PP_NaClFileInfo file_info, |
| 433 [in] PP_CompletionCallback callback); | 426 [in] PP_CompletionCallback callback); |
| 427 |
| 428 /* Reports the status of sel_ldr for UMA reporting. |
| 429 * |max_status| has to be provided because the implementation of this |
| 430 * interface can't access the NaClErrorCode enum. |
| 431 */ |
| 432 void ReportSelLdrStatus([in] PP_Instance instance, |
| 433 [in] int32_t load_status, |
| 434 [in] int32_t max_status); |
| 434 }; | 435 }; |
| OLD | NEW |