| 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 Jun 3 08:33:15 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Fri May 30 10:50:23 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 * plugin. | 396 * plugin. |
| 397 */ | 397 */ |
| 398 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); | 398 void (*ProcessNaClManifest)(PP_Instance instance, const char* program_url); |
| 399 /* Returns the manifest url as passed as a plugin argument. */ | 399 /* Returns the manifest url as passed as a plugin argument. */ |
| 400 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); | 400 struct PP_Var (*GetManifestURLArgument)(PP_Instance instance); |
| 401 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); | 401 PP_Bool (*DevInterfacesEnabled)(PP_Instance instance); |
| 402 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, | 402 PP_Bool (*GetManifestProgramURL)(PP_Instance instance, |
| 403 struct PP_Var* full_url, | 403 struct PP_Var* full_url, |
| 404 struct PP_PNaClOptions* pnacl_options, | 404 struct PP_PNaClOptions* pnacl_options, |
| 405 PP_Bool* uses_nonsfi_mode); | 405 PP_Bool* uses_nonsfi_mode); |
| 406 /* Opens a manifest entry for the given instance. If this is for a helper | 406 PP_Bool (*ManifestResolveKey)(PP_Instance instance, |
| 407 * process, we consult our internal pnacl.json instead of the user-supplied | 407 PP_Bool helper_process, |
| 408 * NMF. | 408 const char* key, |
| 409 * Fails for files which require PNaCl translation. | 409 struct PP_Var* full_url, |
| 410 */ | 410 struct PP_PNaClOptions* pnacl_options); |
| 411 void (*OpenManifestEntry)(PP_Instance instance, | |
| 412 PP_Bool is_helper_process, | |
| 413 const char* key, | |
| 414 struct PP_NaClFileInfo* file_info, | |
| 415 struct PP_CompletionCallback callback); | |
| 416 /* Returns the filenames for the llc and ld tools, parsing that information | 411 /* Returns the filenames for the llc and ld tools, parsing that information |
| 417 * from the file given in |filename|. | 412 * from the file given in |filename|. |
| 418 */ | 413 */ |
| 419 PP_Bool (*GetPnaclResourceInfo)(PP_Instance instance, | 414 PP_Bool (*GetPnaclResourceInfo)(PP_Instance instance, |
| 420 const char* filename, | 415 const char* filename, |
| 421 struct PP_Var* llc_tool_name, | 416 struct PP_Var* llc_tool_name, |
| 422 struct PP_Var* ld_tool_name); | 417 struct PP_Var* ld_tool_name); |
| 423 /* PP_Var string of attributes describing the CPU features supported | 418 /* PP_Var string of attributes describing the CPU features supported |
| 424 * by the current architecture. The string is a comma-delimited list | 419 * by the current architecture. The string is a comma-delimited list |
| 425 * of attributes supported by LLVM in its -mattr= option: | 420 * of attributes supported by LLVM in its -mattr= option: |
| 426 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ | 421 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ |
| 427 struct PP_Var (*GetCpuFeatureAttrs)(void); | 422 struct PP_Var (*GetCpuFeatureAttrs)(void); |
| 428 /* Posts a message to the JavaScript object for the given instance. | 423 /* Posts a message to the JavaScript object for the given instance. |
| 429 * This method may be called on any thread. | 424 * This method may be called on any thread. |
| 430 */ | 425 */ |
| 431 void (*PostMessageToJavaScript)(PP_Instance instance, const char* message); | 426 void (*PostMessageToJavaScript)(PP_Instance instance, const char* message); |
| 432 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| | 427 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| |
| 433 * to information for a handle to a file containing its contents. | 428 * to information for a handle to a file containing its contents. |
| 434 * If metadata for identity-based validation caching is available | 429 * If metadata for identity-based validation caching is available |
| 435 * then it sets token information in |file_info| (otherwise left untouched). | 430 * then it sets token information in |file_info| (otherwise left untouched). |
| 436 */ | 431 */ |
| 437 void (*DownloadNexe)(PP_Instance instance, | 432 void (*DownloadNexe)(PP_Instance instance, |
| 438 const char* url, | 433 const char* url, |
| 439 struct PP_NaClFileInfo* file_info, | 434 struct PP_NaClFileInfo* file_info, |
| 440 struct PP_CompletionCallback callback); | 435 struct PP_CompletionCallback callback); |
| 436 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| |
| 437 * to corresponding information about the file. */ |
| 438 void (*DownloadFile)(PP_Instance instance, |
| 439 const char* url, |
| 440 struct PP_NaClFileInfo* file_info, |
| 441 struct PP_CompletionCallback callback); |
| 441 }; | 442 }; |
| 442 | 443 |
| 443 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 444 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 444 /** | 445 /** |
| 445 * @} | 446 * @} |
| 446 */ | 447 */ |
| 447 | 448 |
| 448 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 449 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 449 | 450 |
| OLD | NEW |