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_audio_input_dev.h" | 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
(...skipping 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3268 | 3268 |
3269 /* Begin wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ | 3269 /* Begin wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ |
3270 | 3270 |
3271 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) { | 3271 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) { |
3272 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB
_IsolatedFileSystem_Private_0_2.real_iface; | 3272 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB
_IsolatedFileSystem_Private_0_2.real_iface; |
3273 return iface->Open(instance, type, file_system, *callback); | 3273 return iface->Open(instance, type, file_system, *callback); |
3274 } | 3274 } |
3275 | 3275 |
3276 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ | 3276 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ |
3277 | 3277 |
3278 /* Not generating wrapper methods for PPP_ManifestService_1_0 */ | |
3279 | |
3280 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ | 3278 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ |
3281 | 3279 |
3282 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, PP_Boo
l main_service_runtime, const char* alleged_url, const struct PP_NaClFileInfo* n
exe_file_info, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, P
P_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_excepti
on_handling, PP_Bool enable_crash_throttling, const struct PPP_ManifestService_1
_0* manifest_service_interface, void* manifest_service_user_data, void* imc_hand
le, struct PP_CompletionCallback* callback) { | 3280 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, PP_Boo
l main_service_runtime, const char* alleged_url, const struct PP_NaClFileInfo* n
exe_file_info, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, P
P_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_excepti
on_handling, PP_Bool enable_crash_throttling, void* imc_handle, struct PP_Comple
tionCallback* callback) { |
3283 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3281 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3284 iface->LaunchSelLdr(instance, main_service_runtime, alleged_url, nexe_file_inf
o, uses_irt, uses_ppapi, uses_nonsfi_mode, enable_ppapi_dev, enable_dyncode_sysc
alls, enable_exception_handling, enable_crash_throttling, manifest_service_inter
face, manifest_service_user_data, imc_handle, *callback); | 3282 iface->LaunchSelLdr(instance, main_service_runtime, alleged_url, nexe_file_inf
o, uses_irt, uses_ppapi, uses_nonsfi_mode, enable_ppapi_dev, enable_dyncode_sysc
alls, enable_exception_handling, enable_crash_throttling, imc_handle, *callback)
; |
3285 } | 3283 } |
3286 | 3284 |
3287 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance)
{ | 3285 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance)
{ |
3288 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3286 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3289 return iface->StartPpapiProxy(instance); | 3287 return iface->StartPpapiProxy(instance); |
3290 } | 3288 } |
3291 | 3289 |
3292 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { | 3290 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { |
3293 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3291 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3294 return iface->UrandomFD(); | 3292 return iface->UrandomFD(); |
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5213 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private
_0_1 = { | 5211 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private
_0_1 = { |
5214 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, | 5212 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, |
5215 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, | 5213 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, |
5216 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript | 5214 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript |
5217 }; | 5215 }; |
5218 | 5216 |
5219 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat
edFileSystem_Private_0_2 = { | 5217 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat
edFileSystem_Private_0_2 = { |
5220 .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 | 5218 .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 |
5221 }; | 5219 }; |
5222 | 5220 |
5223 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ | |
5224 | |
5225 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { | 5221 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { |
5226 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime
, const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool
uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de
v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e
nable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_service_i
nterface, void* manifest_service_user_data, void* imc_handle, struct PP_Completi
onCallback callback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr, | 5222 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime
, const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool
uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de
v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e
nable_crash_throttling, void* imc_handle, struct PP_CompletionCallback callback)
)&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr, |
5227 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, | 5223 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, |
5228 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, | 5224 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, |
5229 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 5225 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
5230 .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, | 5226 .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, |
5231 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC
l_Private_GetReadonlyPnaclFd, | 5227 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC
l_Private_GetReadonlyPnaclFd, |
5232 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, | 5228 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, |
5233 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, | 5229 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, |
5234 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, | 5230 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, |
5235 .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, | 5231 .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, |
5236 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
, int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_
NaCl_Private_ReportTranslationFinished, | 5232 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
, int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_
NaCl_Private_ReportTranslationFinished, |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6296 | 6292 |
6297 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6298 if (wrapper->real_iface == NULL) { | 6294 if (wrapper->real_iface == NULL) { |
6299 const void *iface = (*__real_PPPGetInterface)(name); | 6295 const void *iface = (*__real_PPPGetInterface)(name); |
6300 if (NULL == iface) return NULL; | 6296 if (NULL == iface) return NULL; |
6301 wrapper->real_iface = iface; | 6297 wrapper->real_iface = iface; |
6302 } | 6298 } |
6303 | 6299 |
6304 return wrapper->wrapped_iface; | 6300 return wrapper->wrapped_iface; |
6305 } | 6301 } |
OLD | NEW |