| 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 Apr 22 22:25:20 2013. */ | 6 /* From private/ppb_nacl_private.idl modified Tue May 7 10:09:07 2013. */ |
| 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_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 #include "ppapi/c/pp_var.h" | |
| 16 | 15 |
| 17 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" | 16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" |
| 18 #define PPB_NACL_PRIVATE_INTERFACE PPB_NACL_PRIVATE_INTERFACE_1_0 | 17 #define PPB_NACL_PRIVATE_INTERFACE PPB_NACL_PRIVATE_INTERFACE_1_0 |
| 19 | 18 |
| 20 /** | 19 /** |
| 21 * @file | 20 * @file |
| 22 * This file contains NaCl private interfaces. This interface is not versioned | 21 * This file contains NaCl private interfaces. This interface is not versioned |
| 23 * and is for internal Chrome use. It may change without notice. */ | 22 * and is for internal Chrome use. It may change without notice. */ |
| 24 | 23 |
| 25 | 24 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 50 * The manifest program element does not contain a program usable on the | 49 * The manifest program element does not contain a program usable on the |
| 51 * user's architecture | 50 * user's architecture |
| 52 */ | 51 */ |
| 53 PP_NACL_MANIFEST_MISSING_ARCH = 0 | 52 PP_NACL_MANIFEST_MISSING_ARCH = 0 |
| 54 } PP_NaClError; | 53 } PP_NaClError; |
| 55 /** | 54 /** |
| 56 * @} | 55 * @} |
| 57 */ | 56 */ |
| 58 | 57 |
| 59 /** | 58 /** |
| 60 * @addtogroup Structs | |
| 61 * @{ | |
| 62 */ | |
| 63 struct PP_NaClExecutableMetadata { | |
| 64 /** File path of NaCl executable. This is created by the OpenNaClExecutableFd | |
| 65 * function. It is the caller's responsiblity to release it. */ | |
| 66 struct PP_Var file_path; | |
| 67 }; | |
| 68 /** | |
| 69 * @} | |
| 70 */ | |
| 71 | |
| 72 /** | |
| 73 * @addtogroup Interfaces | 59 * @addtogroup Interfaces |
| 74 * @{ | 60 * @{ |
| 75 */ | 61 */ |
| 76 /* PPB_NaCl_Private */ | 62 /* PPB_NaCl_Private */ |
| 77 struct PPB_NaCl_Private_1_0 { | 63 struct PPB_NaCl_Private_1_0 { |
| 78 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and | 64 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and |
| 79 * writes a NaClHandle to imc_handle. Returns PP_NACL_FAILED on failure. | 65 * writes a NaClHandle to imc_handle. Returns PP_NACL_FAILED on failure. |
| 80 * The |enable_ppapi_dev| parameter controls whether GetInterface | 66 * The |enable_ppapi_dev| parameter controls whether GetInterface |
| 81 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag | 67 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag |
| 82 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. | 68 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 /* Return true if PNaCl is turned on. | 128 /* Return true if PNaCl is turned on. |
| 143 */ | 129 */ |
| 144 PP_Bool (*IsPnaclEnabled)(void); | 130 PP_Bool (*IsPnaclEnabled)(void); |
| 145 /* Display a UI message to the user. */ | 131 /* Display a UI message to the user. */ |
| 146 PP_NaClResult (*ReportNaClError)(PP_Instance instance, | 132 PP_NaClResult (*ReportNaClError)(PP_Instance instance, |
| 147 PP_NaClError message_id); | 133 PP_NaClError message_id); |
| 148 /* Opens a NaCl executable file in the application's extension directory | 134 /* Opens a NaCl executable file in the application's extension directory |
| 149 * corresponding to the file URL and returns a file descriptor, or an invalid | 135 * corresponding to the file URL and returns a file descriptor, or an invalid |
| 150 * handle on failure. |metadata| is left unchanged on failure. | 136 * handle on failure. |metadata| is left unchanged on failure. |
| 151 */ | 137 */ |
| 152 PP_FileHandle (*OpenNaClExecutable)( | 138 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, |
| 153 PP_Instance instance, | 139 const char* file_url, |
| 154 const char* file_url, | 140 uint64_t* nonce); |
| 155 struct PP_NaClExecutableMetadata* metadata); | |
| 156 }; | 141 }; |
| 157 | 142 |
| 158 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 143 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 159 /** | 144 /** |
| 160 * @} | 145 * @} |
| 161 */ | 146 */ |
| 162 | 147 |
| 163 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 148 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 164 | 149 |
| OLD | NEW |