Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 131653003: Support LoadSession() in MediaKeys and PPP_ContentDecryptor_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4; 230 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4;
231 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5; 231 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5;
232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Private_1_0; 232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Private_1_0;
233 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2; 233 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2;
234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; 234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3;
235 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4; 235 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4;
236 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_2; 236 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_2;
237 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDestination_Private_ 0_1; 237 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDestination_Private_ 0_1;
238 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1; 238 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1;
239 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1; 239 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1;
240 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_10; 240 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_11;
241 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1; 241 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1;
242 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1; 242 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1;
243 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_2; 243 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_2;
244 /* END Declarations for all Wrapper Infos. */ 244 /* END Declarations for all Wrapper Infos. */
245 245
246 /* Not generating wrapper methods for PPB_Audio_1_0 */ 246 /* Not generating wrapper methods for PPB_Audio_1_0 */
247 247
248 /* Not generating wrapper methods for PPB_Audio_1_1 */ 248 /* Not generating wrapper methods for PPB_Audio_1_1 */
249 249
250 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 250 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
(...skipping 3644 matching lines...) Expand 10 before | Expand all | Expand 10 after
3895 return iface->Initialize(resource, bytes, length); 3895 return iface->Initialize(resource, bytes, length);
3896 } 3896 }
3897 3897
3898 static void Pnacl_M19_PPB_X509Certificate_Private_GetField(struct PP_Var* _struc t_result, PP_Resource resource, PP_X509Certificate_Private_Field field) { 3898 static void Pnacl_M19_PPB_X509Certificate_Private_GetField(struct PP_Var* _struc t_result, PP_Resource resource, PP_X509Certificate_Private_Field field) {
3899 const struct PPB_X509Certificate_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_X5 09Certificate_Private_0_1.real_iface; 3899 const struct PPB_X509Certificate_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_X5 09Certificate_Private_0_1.real_iface;
3900 *_struct_result = iface->GetField(resource, field); 3900 *_struct_result = iface->GetField(resource, field);
3901 } 3901 }
3902 3902
3903 /* End wrapper methods for PPB_X509Certificate_Private_0_1 */ 3903 /* End wrapper methods for PPB_X509Certificate_Private_0_1 */
3904 3904
3905 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_10 */ 3905 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_11 */
3906 3906
3907 static void Pnacl_M34_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) { 3907 static void Pnacl_M34_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) {
3908 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3908 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3909 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) = 3909 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) =
3910 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e); 3910 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e);
3911 temp_fp(instance, &key_system); 3911 temp_fp(instance, &key_system);
3912 } 3912 }
3913 3913
3914 static void Pnacl_M34_PPP_ContentDecryptor_Private_CreateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var type, struct PP_Var init_data) { 3914 static void Pnacl_M34_PPP_ContentDecryptor_Private_CreateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var content_type, struct PP_Var init_data) {
3915 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3915 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3916 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* type , struct PP_Var* init_data) = 3916 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* cont ent_type, struct PP_Var* init_data) =
3917 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* type, s truct PP_Var* init_data))iface->CreateSession); 3917 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* content _type, struct PP_Var* init_data))iface->CreateSession);
3918 temp_fp(instance, session_id, &type, &init_data); 3918 temp_fp(instance, session_id, &content_type, &init_data);
3919 }
3920
3921 static void Pnacl_M34_PPP_ContentDecryptor_Private_LoadSession(PP_Instance insta nce, uint32_t session_id, struct PP_Var web_session_id) {
3922 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3923 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* web_ session_id) =
3924 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* web_ses sion_id))iface->LoadSession);
3925 temp_fp(instance, session_id, &web_session_id);
3919 } 3926 }
3920 3927
3921 static void Pnacl_M34_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var response) { 3928 static void Pnacl_M34_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var response) {
3922 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3929 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3923 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* resp onse) = 3930 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* resp onse) =
3924 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* respons e))iface->UpdateSession); 3931 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* respons e))iface->UpdateSession);
3925 temp_fp(instance, session_id, &response); 3932 temp_fp(instance, session_id, &response);
3926 } 3933 }
3927 3934
3928 static void Pnacl_M34_PPP_ContentDecryptor_Private_ReleaseSession(PP_Instance in stance, uint32_t session_id) { 3935 static void Pnacl_M34_PPP_ContentDecryptor_Private_ReleaseSession(PP_Instance in stance, uint32_t session_id) {
3929 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3936 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3930 void (*temp_fp)(PP_Instance instance, uint32_t session_id) = 3937 void (*temp_fp)(PP_Instance instance, uint32_t session_id) =
3931 ((void (*)(PP_Instance instance, uint32_t session_id))iface->ReleaseSession) ; 3938 ((void (*)(PP_Instance instance, uint32_t session_id))iface->ReleaseSession) ;
3932 temp_fp(instance, session_id); 3939 temp_fp(instance, session_id);
3933 } 3940 }
3934 3941
3935 static void Pnacl_M34_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) { 3942 static void Pnacl_M34_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) {
3936 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3943 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3937 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) = 3944 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) =
3938 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt); 3945 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt);
3939 temp_fp(instance, encrypted_block, encrypted_block_info); 3946 temp_fp(instance, encrypted_block, encrypted_block_info);
3940 } 3947 }
3941 3948
3942 static void Pnacl_M34_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 3949 static void Pnacl_M34_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
3943 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3950 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3944 void (*temp_fp)(PP_Instance instance, const struct PP_AudioDecoderConfig* deco der_config, PP_Resource codec_extra_data) = 3951 void (*temp_fp)(PP_Instance instance, const struct PP_AudioDecoderConfig* deco der_config, PP_Resource codec_extra_data) =
3945 ((void (*)(PP_Instance instance, const struct PP_AudioDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeAudioDecoder); 3952 ((void (*)(PP_Instance instance, const struct PP_AudioDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeAudioDecoder);
3946 temp_fp(instance, decoder_config, codec_extra_data); 3953 temp_fp(instance, decoder_config, codec_extra_data);
3947 } 3954 }
3948 3955
3949 static void Pnacl_M34_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Ins tance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 3956 static void Pnacl_M34_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Ins tance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
3950 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3957 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3951 void (*temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* deco der_config, PP_Resource codec_extra_data) = 3958 void (*temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* deco der_config, PP_Resource codec_extra_data) =
3952 ((void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder); 3959 ((void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder);
3953 temp_fp(instance, decoder_config, codec_extra_data); 3960 temp_fp(instance, decoder_config, codec_extra_data);
3954 } 3961 }
3955 3962
3956 static void Pnacl_M34_PPP_ContentDecryptor_Private_DeinitializeDecoder(PP_Instan ce instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 3963 static void Pnacl_M34_PPP_ContentDecryptor_Private_DeinitializeDecoder(PP_Instan ce instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
3957 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3964 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3958 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) = 3965 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) =
3959 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->DeinitializeDecoder); 3966 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->DeinitializeDecoder);
3960 temp_fp(instance, decoder_type, request_id); 3967 temp_fp(instance, decoder_type, request_id);
3961 } 3968 }
3962 3969
3963 static void Pnacl_M34_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 3970 static void Pnacl_M34_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
3964 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3971 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3965 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) = 3972 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) =
3966 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->ResetDecoder); 3973 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->ResetDecoder);
3967 temp_fp(instance, decoder_type, request_id); 3974 temp_fp(instance, decoder_type, request_id);
3968 } 3975 }
3969 3976
3970 static void Pnacl_M34_PPP_ContentDecryptor_Private_DecryptAndDecode(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, con st struct PP_EncryptedBlockInfo* encrypted_block_info) { 3977 static void Pnacl_M34_PPP_ContentDecryptor_Private_DecryptAndDecode(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, con st struct PP_EncryptedBlockInfo* encrypted_block_info) {
3971 const struct PPP_ContentDecryptor_Private_0_10 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_10.real_iface; 3978 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface;
3972 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_ Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_i nfo) = 3979 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_ Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_i nfo) =
3973 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Res ource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info ))iface->DecryptAndDecode); 3980 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Res ource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info ))iface->DecryptAndDecode);
3974 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info); 3981 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info);
3975 } 3982 }
3976 3983
3977 /* End wrapper methods for PPP_ContentDecryptor_Private_0_10 */ 3984 /* End wrapper methods for PPP_ContentDecryptor_Private_0_11 */
3978 3985
3979 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ 3986 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */
3980 3987
3981 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */ 3988 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */
3982 3989
3983 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */ 3990 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */
3984 3991
3985 /* Begin wrapper methods for PPP_Instance_Private_0_1 */ 3992 /* Begin wrapper methods for PPP_Instance_Private_0_1 */
3986 3993
3987 static struct PP_Var Pnacl_M18_PPP_Instance_Private_GetInstanceObject(PP_Instanc e instance) { 3994 static struct PP_Var Pnacl_M18_PPP_Instance_Private_GetInstanceObject(PP_Instanc e instance) {
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
5209 .Close = (void (*)(PP_Resource source))&Pnacl_M28_PPB_VideoSource_Private_Cl ose 5216 .Close = (void (*)(PP_Resource source))&Pnacl_M28_PPB_VideoSource_Private_Cl ose
5210 }; 5217 };
5211 5218
5212 static struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certificate _Private_0_1 = { 5219 static struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certificate _Private_0_1 = {
5213 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_X509Certific ate_Private_Create, 5220 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_X509Certific ate_Private_Create,
5214 .IsX509CertificatePrivate = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PP B_X509Certificate_Private_IsX509CertificatePrivate, 5221 .IsX509CertificatePrivate = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PP B_X509Certificate_Private_IsX509CertificatePrivate,
5215 .Initialize = (PP_Bool (*)(PP_Resource resource, const char* bytes, uint32_t length))&Pnacl_M19_PPB_X509Certificate_Private_Initialize, 5222 .Initialize = (PP_Bool (*)(PP_Resource resource, const char* bytes, uint32_t length))&Pnacl_M19_PPB_X509Certificate_Private_Initialize,
5216 .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Priv ate_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField 5223 .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Priv ate_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField
5217 }; 5224 };
5218 5225
5219 static struct PPP_ContentDecryptor_Private_0_10 Pnacl_Wrappers_PPP_ContentDecryp tor_Private_0_10 = { 5226 static struct PPP_ContentDecryptor_Private_0_11 Pnacl_Wrappers_PPP_ContentDecryp tor_Private_0_11 = {
5220 .Initialize = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize, 5227 .Initialize = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize,
5221 .CreateSession = &Pnacl_M34_PPP_ContentDecryptor_Private_CreateSession, 5228 .CreateSession = &Pnacl_M34_PPP_ContentDecryptor_Private_CreateSession,
5229 .LoadSession = &Pnacl_M34_PPP_ContentDecryptor_Private_LoadSession,
5222 .UpdateSession = &Pnacl_M34_PPP_ContentDecryptor_Private_UpdateSession, 5230 .UpdateSession = &Pnacl_M34_PPP_ContentDecryptor_Private_UpdateSession,
5223 .ReleaseSession = &Pnacl_M34_PPP_ContentDecryptor_Private_ReleaseSession, 5231 .ReleaseSession = &Pnacl_M34_PPP_ContentDecryptor_Private_ReleaseSession,
5224 .Decrypt = &Pnacl_M34_PPP_ContentDecryptor_Private_Decrypt, 5232 .Decrypt = &Pnacl_M34_PPP_ContentDecryptor_Private_Decrypt,
5225 .InitializeAudioDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize AudioDecoder, 5233 .InitializeAudioDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize AudioDecoder,
5226 .InitializeVideoDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize VideoDecoder, 5234 .InitializeVideoDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize VideoDecoder,
5227 .DeinitializeDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_DeinitializeD ecoder, 5235 .DeinitializeDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_DeinitializeD ecoder,
5228 .ResetDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_ResetDecoder, 5236 .ResetDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_ResetDecoder,
5229 .DecryptAndDecode = &Pnacl_M34_PPP_ContentDecryptor_Private_DecryptAndDecode 5237 .DecryptAndDecode = &Pnacl_M34_PPP_ContentDecryptor_Private_DecryptAndDecode
5230 }; 5238 };
5231 5239
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
5867 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoSource_Private_0_1, 5875 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoSource_Private_0_1,
5868 .real_iface = NULL 5876 .real_iface = NULL
5869 }; 5877 };
5870 5878
5871 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1 = { 5879 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1 = {
5872 .iface_macro = PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1, 5880 .iface_macro = PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1,
5873 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_X509Certificate_Private_0_1, 5881 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_X509Certificate_Private_0_1,
5874 .real_iface = NULL 5882 .real_iface = NULL
5875 }; 5883 };
5876 5884
5877 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_10 = { 5885 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_11 = {
5878 .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_10, 5886 .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_11,
5879 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0_10, 5887 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0_11,
5880 .real_iface = NULL 5888 .real_iface = NULL
5881 }; 5889 };
5882 5890
5883 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = { 5891 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = {
5884 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1, 5892 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1,
5885 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1, 5893 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1,
5886 .real_iface = NULL 5894 .real_iface = NULL
5887 }; 5895 };
5888 5896
5889 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1 = { 5897 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1 = {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
5997 &Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1, 6005 &Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1,
5998 &Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1, 6006 &Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1,
5999 &Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1, 6007 &Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1,
6000 &Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_2, 6008 &Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_2,
6001 NULL 6009 NULL
6002 }; 6010 };
6003 6011
6004 static struct __PnaclWrapperInfo *s_ppp_wrappers[] = { 6012 static struct __PnaclWrapperInfo *s_ppp_wrappers[] = {
6005 &Pnacl_WrapperInfo_PPP_Messaging_1_0, 6013 &Pnacl_WrapperInfo_PPP_Messaging_1_0,
6006 &Pnacl_WrapperInfo_PPP_Selection_Dev_0_3, 6014 &Pnacl_WrapperInfo_PPP_Selection_Dev_0_3,
6007 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_10, 6015 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_11,
6008 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1, 6016 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1,
6009 NULL 6017 NULL
6010 }; 6018 };
6011 6019
6012 6020
6013 6021
6014 static PPB_GetInterface __real_PPBGetInterface; 6022 static PPB_GetInterface __real_PPBGetInterface;
6015 static PPP_GetInterface_Type __real_PPPGetInterface; 6023 static PPP_GetInterface_Type __real_PPPGetInterface;
6016 6024
6017 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { 6025 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
6078 if (NULL == iface) return NULL; 6086 if (NULL == iface) return NULL;
6079 wrapper->real_iface = iface; 6087 wrapper->real_iface = iface;
6080 } 6088 }
6081 6089
6082 if (wrapper->wrapped_iface) { 6090 if (wrapper->wrapped_iface) {
6083 return wrapper->wrapped_iface; 6091 return wrapper->wrapped_iface;
6084 } else { 6092 } else {
6085 return wrapper->real_iface; 6093 return wrapper->real_iface;
6086 } 6094 }
6087 } 6095 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698