| 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 /* From private/ppb_nacl_private.idl modified Fri May 30 10:50:23 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Wed Jun 4 09:50:07 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
| 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 */ | 364 */ |
| 365 PP_Bool (*NaClDebugEnabledForURL)(const char* alleged_nmf_url); | 365 PP_Bool (*NaClDebugEnabledForURL)(const char* alleged_nmf_url); |
| 366 /* Returns the kind of SFI sandbox implemented by NaCl on this | 366 /* Returns the kind of SFI sandbox implemented by NaCl on this |
| 367 * platform. | 367 * platform. |
| 368 */ | 368 */ |
| 369 const char* (*GetSandboxArch)(void); | 369 const char* (*GetSandboxArch)(void); |
| 370 /* Logs the message to the console. */ | 370 /* Logs the message to the console. */ |
| 371 void (*LogToConsole)(PP_Instance instance, const char* message); | 371 void (*LogToConsole)(PP_Instance instance, const char* message); |
| 372 /* Returns the NaCl readiness status for this instance. */ | 372 /* Returns the NaCl readiness status for this instance. */ |
| 373 PP_NaClReadyState (*GetNaClReadyState)(PP_Instance instance); | 373 PP_NaClReadyState (*GetNaClReadyState)(PP_Instance instance); |
| 374 /* Returns true if the plugin is an installed app. */ | |
| 375 PP_Bool (*GetIsInstalled)(PP_Instance instance); | |
| 376 /* Returns the exit status of the plugin process. */ | 374 /* Returns the exit status of the plugin process. */ |
| 377 int32_t (*GetExitStatus)(PP_Instance instance); | 375 int32_t (*GetExitStatus)(PP_Instance instance); |
| 378 /* Sets the exit status of the plugin process. */ | 376 /* Sets the exit status of the plugin process. */ |
| 379 void (*SetExitStatus)(PP_Instance instance, int32_t exit_status); | 377 void (*SetExitStatus)(PP_Instance instance, int32_t exit_status); |
| 380 /* Logs the message via VLOG. */ | 378 /* Logs the message via VLOG. */ |
| 381 void (*Vlog)(const char* message); | 379 void (*Vlog)(const char* message); |
| 382 /* Initializes internal state for a NaCl plugin. */ | 380 /* Initializes internal state for a NaCl plugin. */ |
| 383 void (*InitializePlugin)(PP_Instance instance, | 381 void (*InitializePlugin)(PP_Instance instance, |
| 384 uint32_t argc, | 382 uint32_t argc, |
| 385 const char* argn[], | 383 const char* argn[], |
| 386 const char* argv[]); | 384 const char* argv[]); |
| 387 /* Returns the size of the nexe. */ | 385 /* Returns the size of the nexe. */ |
| 388 int64_t (*GetNexeSize)(PP_Instance instance); | 386 int64_t (*GetNexeSize)(PP_Instance instance); |
| 389 /* Performs accounting for requesting the NaCl manifest at the given URL. */ | 387 /* Requests the NaCl manifest specified in the plugin arguments. */ |
| 390 void (*RequestNaClManifest)(PP_Instance instance, | 388 void (*RequestNaClManifest)(PP_Instance instance, |
| 391 const char* manifest_url, | |
| 392 struct PP_CompletionCallback callback); | 389 struct PP_CompletionCallback callback); |
| 393 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); | 390 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); |
| 394 /* Processes the NaCl manifest once it's been retrieved. | 391 /* Processes the NaCl manifest once it's been retrieved. |
| 395 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 392 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
| 396 * plugin. | 393 * plugin. |
| 397 */ | 394 */ |
| 398 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); | 395 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); |
| 399 /* Returns the manifest url as passed as a plugin argument. */ | |
| 400 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); | |
| 401 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); | 396 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); |
| 402 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, | 397 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, |
| 403 struct PP_Var* full_url, | 398 struct PP_Var* full_url, |
| 404 struct PP_PNaClOptions* pnacl_options, | 399 struct PP_PNaClOptions* pnacl_options, |
| 405 PP_Bool* uses_nonsfi_mode); | 400 PP_Bool* uses_nonsfi_mode); |
| 406 PP_Bool (*ManifestResolveKey)(PP_Instance instance, | 401 PP_Bool (*ManifestResolveKey)(PP_Instance instance, |
| 407 PP_Bool helper_process, | 402 PP_Bool helper_process, |
| 408 const char* key, | 403 const char* key, |
| 409 struct PP_Var* full_url, | 404 struct PP_Var* full_url, |
| 410 struct PP_PNaClOptions* pnacl_options); | 405 struct PP_PNaClOptions* pnacl_options); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 432 void (*DownloadNexe)(PP_Instance instance, | 427 void (*DownloadNexe)(PP_Instance instance, |
| 433 const char* url, | 428 const char* url, |
| 434 struct PP_NaClFileInfo* file_info, | 429 struct PP_NaClFileInfo* file_info, |
| 435 struct PP_CompletionCallback callback); | 430 struct PP_CompletionCallback callback); |
| 436 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| | 431 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| |
| 437 * to corresponding information about the file. */ | 432 * to corresponding information about the file. */ |
| 438 void (*DownloadFile)(PP_Instance instance, | 433 void (*DownloadFile)(PP_Instance instance, |
| 439 const char* url, | 434 const char* url, |
| 440 struct PP_NaClFileInfo* file_info, | 435 struct PP_NaClFileInfo* file_info, |
| 441 struct PP_CompletionCallback callback); | 436 struct PP_CompletionCallback callback); |
| 437 /* Reports the status of sel_ldr for UMA reporting. |
| 438 * |max_status| has to be provided because the implementation of this |
| 439 * interface can't access the NaClErrorCode enum. |
| 440 */ |
| 441 void (*ReportSelLdrStatus)(PP_Instance instance, |
| 442 int32_t load_status, |
| 443 int32_t max_status); |
| 442 }; | 444 }; |
| 443 | 445 |
| 444 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 446 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 445 /** | 447 /** |
| 446 * @} | 448 * @} |
| 447 */ | 449 */ |
| 448 | 450 |
| 449 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 451 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 450 | 452 |
| OLD | NEW |