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 Mon May 19 11:12:19 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Wed May 21 13:23:26 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 /* PP_Var string of attributes describing the CPU features supported | 409 /* PP_Var string of attributes describing the CPU features supported |
410 * by the current architecture. The string is a comma-delimited list | 410 * by the current architecture. The string is a comma-delimited list |
411 * of attributes supported by LLVM in its -mattr= option: | 411 * of attributes supported by LLVM in its -mattr= option: |
412 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ | 412 * http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr */ |
413 struct PP_Var (*GetCpuFeatureAttrs)(void); | 413 struct PP_Var (*GetCpuFeatureAttrs)(void); |
414 /* Posts a message to the JavaScript object for the given instance. | 414 /* Posts a message to the JavaScript object for the given instance. |
415 * This method may be called on any thread. | 415 * This method may be called on any thread. |
416 */ | 416 */ |
417 void (*PostMessageToJavaScript)(PP_Instance instance, const char* message); | 417 void (*PostMessageToJavaScript)(PP_Instance instance, const char* message); |
418 /* Downloads the .nexe file at the given URL to a file, and sets |handle| | 418 /* Downloads the .nexe file at the given URL to a file, and sets |handle| |
419 * to a handle to a file containing its contents. */ | 419 * to a handle to a file containing its contents. |
| 420 * If metadata for identity-based validation caching is available |
| 421 * then it sets file_token_lo and file_token_lo (otherwise left untouched). |
| 422 */ |
420 void (*DownloadNexe)(PP_Instance instance, | 423 void (*DownloadNexe)(PP_Instance instance, |
421 const char* url, | 424 const char* url, |
422 PP_FileHandle* handle, | 425 PP_FileHandle* handle, |
| 426 uint64_t* file_token_lo, |
| 427 uint64_t* file_token_hi, |
423 struct PP_CompletionCallback callback); | 428 struct PP_CompletionCallback callback); |
424 }; | 429 }; |
425 | 430 |
426 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 431 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
427 /** | 432 /** |
428 * @} | 433 * @} |
429 */ | 434 */ |
430 | 435 |
431 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 436 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
432 | 437 |
OLD | NEW |