| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 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/generators/pnacl_shim.h" | 7 #include "ppapi/generators/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 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2736 | 2736 |
| 2737 static void Pnacl_M13_PPB_Instance_Private_ExecuteScript(struct PP_Var* _struct_
result, PP_Instance instance, struct PP_Var* script, struct PP_Var* exception) { | 2737 static void Pnacl_M13_PPB_Instance_Private_ExecuteScript(struct PP_Var* _struct_
result, PP_Instance instance, struct PP_Var* script, struct PP_Var* exception) { |
| 2738 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; | 2738 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; |
| 2739 *_struct_result = iface->ExecuteScript(instance, *script, exception); | 2739 *_struct_result = iface->ExecuteScript(instance, *script, exception); |
| 2740 } | 2740 } |
| 2741 | 2741 |
| 2742 /* End wrapper methods for PPB_Instance_Private_0_1 */ | 2742 /* End wrapper methods for PPB_Instance_Private_0_1 */ |
| 2743 | 2743 |
| 2744 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ | 2744 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ |
| 2745 | 2745 |
| 2746 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instanc
e, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable
_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling,
void* imc_handle) { | 2746 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instanc
e, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable
_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling,
void* imc_handle, struct PP_Var* error_message) { |
| 2747 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 2747 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 2748 return iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, enable
_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, imc_handle); | 2748 return iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, enable
_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, imc_handle, erro
r_message); |
| 2749 } | 2749 } |
| 2750 | 2750 |
| 2751 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_StartPpapiProxy(PP_Instance inst
ance) { | 2751 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_StartPpapiProxy(PP_Instance inst
ance) { |
| 2752 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 2752 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 2753 return iface->StartPpapiProxy(instance); | 2753 return iface->StartPpapiProxy(instance); |
| 2754 } | 2754 } |
| 2755 | 2755 |
| 2756 static int32_t Pnacl_M13_PPB_NaCl_Private_UrandomFD(void) { | 2756 static int32_t Pnacl_M13_PPB_NaCl_Private_UrandomFD(void) { |
| 2757 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 2757 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 2758 return iface->UrandomFD(); | 2758 return iface->UrandomFD(); |
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4565 .GetNetAddress = (PP_Bool (*)(PP_Resource host_resolver, uint32_t index, str
uct PP_NetAddress_Private* addr))&Pnacl_M19_PPB_HostResolver_Private_GetNetAddre
ss | 4565 .GetNetAddress = (PP_Bool (*)(PP_Resource host_resolver, uint32_t index, str
uct PP_NetAddress_Private* addr))&Pnacl_M19_PPB_HostResolver_Private_GetNetAddre
ss |
| 4566 }; | 4566 }; |
| 4567 | 4567 |
| 4568 struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private_0_1 = { | 4568 struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private_0_1 = { |
| 4569 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, | 4569 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, |
| 4570 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, | 4570 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, |
| 4571 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript | 4571 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript |
| 4572 }; | 4572 }; |
| 4573 | 4573 |
| 4574 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { | 4574 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { |
| 4575 .LaunchSelLdr = (PP_NaClResult (*)(PP_Instance instance, const char* alleged
_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool en
able_dyncode_syscalls, PP_Bool enable_exception_handling, void* imc_handle))&Pna
cl_M13_PPB_NaCl_Private_LaunchSelLdr, | 4575 .LaunchSelLdr = (PP_NaClResult (*)(PP_Instance instance, const char* alleged
_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool en
able_dyncode_syscalls, PP_Bool enable_exception_handling, void* imc_handle, stru
ct PP_Var* error_message))&Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr, |
| 4576 .StartPpapiProxy = (PP_NaClResult (*)(PP_Instance instance))&Pnacl_M13_PPB_N
aCl_Private_StartPpapiProxy, | 4576 .StartPpapiProxy = (PP_NaClResult (*)(PP_Instance instance))&Pnacl_M13_PPB_N
aCl_Private_StartPpapiProxy, |
| 4577 .UrandomFD = (int32_t (*)(void))&Pnacl_M13_PPB_NaCl_Private_UrandomFD, | 4577 .UrandomFD = (int32_t (*)(void))&Pnacl_M13_PPB_NaCl_Private_UrandomFD, |
| 4578 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 4578 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
| 4579 .EnableBackgroundSelLdrLaunch = (void (*)(void))&Pnacl_M13_PPB_NaCl_Private_
EnableBackgroundSelLdrLaunch, | 4579 .EnableBackgroundSelLdrLaunch = (void (*)(void))&Pnacl_M13_PPB_NaCl_Private_
EnableBackgroundSelLdrLaunch, |
| 4580 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M13_PPB_NaCl_Private_BrokerDuplicateHandle, | 4580 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M13_PPB_NaCl_Private_BrokerDuplicateHandle, |
| 4581 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M13_PP
B_NaCl_Private_GetReadonlyPnaclFd, | 4581 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M13_PP
B_NaCl_Private_GetReadonlyPnaclFd, |
| 4582 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M13_P
PB_NaCl_Private_CreateTemporaryFile, | 4582 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M13_P
PB_NaCl_Private_CreateTemporaryFile, |
| 4583 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* last_modified, const char* etag,
PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb
ack))&Pnacl_M13_PPB_NaCl_Private_GetNexeFd, | 4583 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* last_modified, const char* etag,
PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb
ack))&Pnacl_M13_PPB_NaCl_Private_GetNexeFd, |
| 4584 .ReportTranslationFinished = (void (*)(PP_Instance instance))&Pnacl_M13_PPB_
NaCl_Private_ReportTranslationFinished, | 4584 .ReportTranslationFinished = (void (*)(PP_Instance instance))&Pnacl_M13_PPB_
NaCl_Private_ReportTranslationFinished, |
| 4585 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsOffTheRec
ord, | 4585 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsOffTheRec
ord, |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5566 if (NULL == iface) return NULL; | 5566 if (NULL == iface) return NULL; |
| 5567 wrapper->real_iface = iface; | 5567 wrapper->real_iface = iface; |
| 5568 } | 5568 } |
| 5569 | 5569 |
| 5570 if (wrapper->wrapped_iface) { | 5570 if (wrapper->wrapped_iface) { |
| 5571 return wrapper->wrapped_iface; | 5571 return wrapper->wrapped_iface; |
| 5572 } else { | 5572 } else { |
| 5573 return wrapper->real_iface; | 5573 return wrapper->real_iface; |
| 5574 } | 5574 } |
| 5575 } | 5575 } |
| OLD | NEW |