| 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 Tue May 13 11:00:06 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Wed May 14 11:49:42 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 /* Logs the message via VLOG. */ | 377 /* Logs the message via VLOG. */ |
| 378 void (*Vlog)(const char* message); | 378 void (*Vlog)(const char* message); |
| 379 /* Initializes internal state for a NaCl plugin. */ | 379 /* Initializes internal state for a NaCl plugin. */ |
| 380 void (*InitializePlugin)(PP_Instance instance, | 380 void (*InitializePlugin)(PP_Instance instance, |
| 381 uint32_t argc, | 381 uint32_t argc, |
| 382 const char* argn[], | 382 const char* argn[], |
| 383 const char* argv[]); | 383 const char* argv[]); |
| 384 /* Returns the size of the nexe. */ | 384 /* Returns the size of the nexe. */ |
| 385 int64_t (*GetNexeSize)(PP_Instance instance); | 385 int64_t (*GetNexeSize)(PP_Instance instance); |
| 386 /* Performs accounting for requesting the NaCl manifest at the given URL. */ | 386 /* Performs accounting for requesting the NaCl manifest at the given URL. */ |
| 387 PP_Bool (*RequestNaClManifest)(PP_Instance instance, | 387 void (*RequestNaClManifest)(PP_Instance instance, |
| 388 const char* manifest_url, | 388 const char* manifest_url, |
| 389 PP_Bool* is_data_uri); | 389 struct PP_Var* manifest_data, |
| 390 struct PP_CompletionCallback callback); |
| 390 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); | 391 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); |
| 391 PP_Bool (*ResolvesRelativeToPluginBaseUrl)(PP_Instance instance, | 392 PP_Bool (*ResolvesRelativeToPluginBaseUrl)(PP_Instance instance, |
| 392 const char* url); | 393 const char* url); |
| 393 /* Returns the parsed contents of a data URL. */ | |
| 394 struct PP_Var (*ParseDataURL)(const char* data_url); | |
| 395 /* Processes the NaCl manifest once it's been retrieved. | 394 /* Processes the NaCl manifest once it's been retrieved. |
| 396 * 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 |
| 397 * plugin. | 396 * plugin. |
| 398 */ | 397 */ |
| 399 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); | 398 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); |
| 400 /* Returns the manifest url as passed as a plugin argument. */ | 399 /* Returns the manifest url as passed as a plugin argument. */ |
| 401 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); | 400 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); |
| 402 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); | 401 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); |
| 403 /* Downloads the manifest into the buffer |data|, invoking | |
| 404 * |callback| when finished. | |
| 405 * TODO(teravest): Merge data URL parsing into this. */ | |
| 406 void (*DownloadManifestToBuffer)(PP_Instance instance, | |
| 407 struct PP_Var* data, | |
| 408 struct PP_CompletionCallback callback); | |
| 409 int32_t (*CreatePnaclManifest)(PP_Instance instance); | 402 int32_t (*CreatePnaclManifest)(PP_Instance instance); |
| 410 int32_t (*CreateJsonManifest)(PP_Instance instance, | 403 int32_t (*CreateJsonManifest)(PP_Instance instance, |
| 411 const char* manifest_base_url, | 404 const char* manifest_base_url, |
| 412 const char* manifest_data); | 405 const char* manifest_data); |
| 413 void (*DestroyManifest)(PP_Instance instance, int32_t manifest_id); | 406 void (*DestroyManifest)(PP_Instance instance, int32_t manifest_id); |
| 414 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, | 407 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, |
| 415 int32_t manifest_id, | 408 int32_t manifest_id, |
| 416 struct PP_Var* full_url, | 409 struct PP_Var* full_url, |
| 417 struct PP_PNaClOptions* pnacl_options, | 410 struct PP_PNaClOptions* pnacl_options, |
| 418 PP_Bool* uses_nonsfi_mode); | 411 PP_Bool* uses_nonsfi_mode); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 439 void (*PostMessageToJavaScript)(PP_Instance instance, const char* message); | 432 void (*PostMessageToJavaScript)(PP_Instance instance, const char* message); |
| 440 }; | 433 }; |
| 441 | 434 |
| 442 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 435 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 443 /** | 436 /** |
| 444 * @} | 437 * @} |
| 445 */ | 438 */ |
| 446 | 439 |
| 447 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 440 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 448 | 441 |
| OLD | NEW |