| 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 16 11:43:13 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Mon May 19 11:12:19 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 /* Initializes internal state for a NaCl plugin. */ | 367 /* Initializes internal state for a NaCl plugin. */ |
| 368 void (*InitializePlugin)(PP_Instance instance, | 368 void (*InitializePlugin)(PP_Instance instance, |
| 369 uint32_t argc, | 369 uint32_t argc, |
| 370 const char* argn[], | 370 const char* argn[], |
| 371 const char* argv[]); | 371 const char* argv[]); |
| 372 /* Returns the size of the nexe. */ | 372 /* Returns the size of the nexe. */ |
| 373 int64_t (*GetNexeSize)(PP_Instance instance); | 373 int64_t (*GetNexeSize)(PP_Instance instance); |
| 374 /* Performs accounting for requesting the NaCl manifest at the given URL. */ | 374 /* Performs accounting for requesting the NaCl manifest at the given URL. */ |
| 375 void (*RequestNaClManifest)(PP_Instance instance, | 375 void (*RequestNaClManifest)(PP_Instance instance, |
| 376 const char* manifest_url, | 376 const char* manifest_url, |
| 377 struct PP_Var* manifest_data, | 377 int32_t* manifest_id, |
| 378 struct PP_CompletionCallback callback); | 378 struct PP_CompletionCallback callback); |
| 379 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); | 379 struct PP_Var (*GetManifestBaseURL)(PP_Instance instance); |
| 380 PP_Bool (*ResolvesRelativeToPluginBaseUrl)(PP_Instance instance, | 380 PP_Bool (*ResolvesRelativeToPluginBaseUrl)(PP_Instance instance, |
| 381 const char* url); | 381 const char* url); |
| 382 /* Processes the NaCl manifest once it's been retrieved. | 382 /* Processes the NaCl manifest once it's been retrieved. |
| 383 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 383 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
| 384 * plugin. | 384 * plugin. |
| 385 */ | 385 */ |
| 386 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); | 386 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); |
| 387 /* Returns the manifest url as passed as a plugin argument. */ | 387 /* Returns the manifest url as passed as a plugin argument. */ |
| 388 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); | 388 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); |
| 389 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); | 389 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); |
| 390 int32_t (*CreatePnaclManifest)(PP_Instance instance); | 390 int32_t (*CreatePnaclManifest)(PP_Instance instance); |
| 391 int32_t (*CreateJsonManifest)(PP_Instance instance, | |
| 392 const char* manifest_base_url, | |
| 393 const char* manifest_data); | |
| 394 void (*DestroyManifest)(PP_Instance instance, int32_t manifest_id); | 391 void (*DestroyManifest)(PP_Instance instance, int32_t manifest_id); |
| 395 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, | 392 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, |
| 396 int32_t manifest_id, | 393 int32_t manifest_id, |
| 397 struct PP_Var* full_url, | 394 struct PP_Var* full_url, |
| 398 struct PP_PNaClOptions* pnacl_options, | 395 struct PP_PNaClOptions* pnacl_options, |
| 399 PP_Bool* uses_nonsfi_mode); | 396 PP_Bool* uses_nonsfi_mode); |
| 400 PP_Bool (*ManifestResolveKey)(PP_Instance instance, | 397 PP_Bool (*ManifestResolveKey)(PP_Instance instance, |
| 401 int32_t manifest_id, | 398 int32_t manifest_id, |
| 402 const char* key, | 399 const char* key, |
| 403 struct PP_Var* full_url, | 400 struct PP_Var* full_url, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 426 struct PP_CompletionCallback callback); | 423 struct PP_CompletionCallback callback); |
| 427 }; | 424 }; |
| 428 | 425 |
| 429 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 426 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 430 /** | 427 /** |
| 431 * @} | 428 * @} |
| 432 */ | 429 */ |
| 433 | 430 |
| 434 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 431 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 435 | 432 |
| OLD | NEW |