| OLD | NEW |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 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 /* NOTE: this is auto-generated from IDL */ | 6 /* NOTE: this is auto-generated from IDL */ |
| 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" | 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" |
| 8 | 8 |
| 9 #include "ppapi/c/ppb.h" | 9 #include "ppapi/c/ppb.h" |
| 10 #include "ppapi/c/dev/ppb_alarms_dev.h" | 10 #include "ppapi/c/dev/ppb_alarms_dev.h" |
| (...skipping 3067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3078 | 3078 |
| 3079 /* Begin wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ | 3079 /* Begin wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ |
| 3080 | 3080 |
| 3081 static int32_t Pnacl_M33_PPB_IsolatedFileSystem_Private_Open(PP_Instance instanc
e, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_C
ompletionCallback* callback) { | 3081 static int32_t Pnacl_M33_PPB_IsolatedFileSystem_Private_Open(PP_Instance instanc
e, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_C
ompletionCallback* callback) { |
| 3082 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB
_IsolatedFileSystem_Private_0_2.real_iface; | 3082 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB
_IsolatedFileSystem_Private_0_2.real_iface; |
| 3083 return iface->Open(instance, type, file_system, *callback); | 3083 return iface->Open(instance, type, file_system, *callback); |
| 3084 } | 3084 } |
| 3085 | 3085 |
| 3086 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ | 3086 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ |
| 3087 | 3087 |
| 3088 /* Not generating wrapper methods for PP_ManifestService_1_0 */ | 3088 /* Not generating wrapper methods for PPP_ManifestService_1_0 */ |
| 3089 | 3089 |
| 3090 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ | 3090 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ |
| 3091 | 3091 |
| 3092 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, const
char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mod
e, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exc
eption_handling, PP_Bool enable_crash_throttling, const struct PP_ManifestServic
e_1_0* manifest_service_interface, void* manifest_service_user_data, void* imc_h
andle, struct PP_Var* error_message, struct PP_CompletionCallback* callback) { | 3092 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, const
char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mod
e, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exc
eption_handling, PP_Bool enable_crash_throttling, const struct PPP_ManifestServi
ce_1_0* manifest_service_interface, void* manifest_service_user_data, void* imc_
handle, struct PP_Var* error_message, struct PP_CompletionCallback* callback) { |
| 3093 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3093 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3094 iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, uses_nonsfi_m
ode, enable_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, enabl
e_crash_throttling, manifest_service_interface, manifest_service_user_data, imc_
handle, error_message, *callback); | 3094 iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, uses_nonsfi_m
ode, enable_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, enabl
e_crash_throttling, manifest_service_interface, manifest_service_user_data, imc_
handle, error_message, *callback); |
| 3095 } | 3095 } |
| 3096 | 3096 |
| 3097 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance)
{ | 3097 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance)
{ |
| 3098 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3098 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3099 return iface->StartPpapiProxy(instance); | 3099 return iface->StartPpapiProxy(instance); |
| 3100 } | 3100 } |
| 3101 | 3101 |
| 3102 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { | 3102 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { |
| (...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5150 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private
_0_1 = { | 5150 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private
_0_1 = { |
| 5151 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, | 5151 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, |
| 5152 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, | 5152 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, |
| 5153 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript | 5153 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript |
| 5154 }; | 5154 }; |
| 5155 | 5155 |
| 5156 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat
edFileSystem_Private_0_2 = { | 5156 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat
edFileSystem_Private_0_2 = { |
| 5157 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private
type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M
33_PPB_IsolatedFileSystem_Private_Open | 5157 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private
type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M
33_PPB_IsolatedFileSystem_Private_Open |
| 5158 }; | 5158 }; |
| 5159 | 5159 |
| 5160 /* Not generating wrapper interface for PP_ManifestService_1_0 */ | 5160 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ |
| 5161 | 5161 |
| 5162 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { | 5162 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { |
| 5163 .LaunchSelLdr = (void (*)(PP_Instance instance, const char* alleged_url, PP_
Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppap
i_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bo
ol enable_crash_throttling, const struct PP_ManifestService_1_0* manifest_servic
e_interface, void* manifest_service_user_data, void* imc_handle, struct PP_Var*
error_message, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Privat
e_LaunchSelLdr, | 5163 .LaunchSelLdr = (void (*)(PP_Instance instance, const char* alleged_url, PP_
Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppap
i_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bo
ol enable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_servi
ce_interface, void* manifest_service_user_data, void* imc_handle, struct PP_Var*
error_message, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Priva
te_LaunchSelLdr, |
| 5164 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, | 5164 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, |
| 5165 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, | 5165 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, |
| 5166 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 5166 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
| 5167 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, | 5167 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, |
| 5168 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, | 5168 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, |
| 5169 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, | 5169 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, |
| 5170 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, | 5170 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, |
| 5171 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, | 5171 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, |
| 5172 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags
, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call
back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, | 5172 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags
, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call
back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, |
| 5173 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, | 5173 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6259 | 6259 |
| 6260 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6260 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
| 6261 if (wrapper->real_iface == NULL) { | 6261 if (wrapper->real_iface == NULL) { |
| 6262 const void *iface = (*__real_PPPGetInterface)(name); | 6262 const void *iface = (*__real_PPPGetInterface)(name); |
| 6263 if (NULL == iface) return NULL; | 6263 if (NULL == iface) return NULL; |
| 6264 wrapper->real_iface = iface; | 6264 wrapper->real_iface = iface; |
| 6265 } | 6265 } |
| 6266 | 6266 |
| 6267 return wrapper->wrapped_iface; | 6267 return wrapper->wrapped_iface; |
| 6268 } | 6268 } |
| OLD | NEW |