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