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

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

Issue 985113003: Block platform verification and file IO in the CDM adapter if the CDM configuration disallows them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DCHECK types. Created 5 years, 9 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
« no previous file with comments | « ppapi/cpp/private/content_decryptor_private.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2015 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Private_1_0; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Private_1_0;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_3; 203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_3;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDestination_Private_ 0_1; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDestination_Private_ 0_1;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_13; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_14;
208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1; 208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1;
209 /* END Declarations for all Wrapper Infos. */ 209 /* END Declarations for all Wrapper Infos. */
210 210
211 /* Not generating wrapper methods for PPB_Audio_1_0 */ 211 /* Not generating wrapper methods for PPB_Audio_1_0 */
212 212
213 /* Not generating wrapper methods for PPB_Audio_1_1 */ 213 /* Not generating wrapper methods for PPB_Audio_1_1 */
214 214
215 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */ 215 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */
216 216
217 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 217 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
(...skipping 4159 matching lines...) Expand 10 before | Expand all | Expand 10 after
4377 return iface->Initialize(resource, bytes, length); 4377 return iface->Initialize(resource, bytes, length);
4378 } 4378 }
4379 4379
4380 static void Pnacl_M19_PPB_X509Certificate_Private_GetField(struct PP_Var* _struc t_result, PP_Resource resource, PP_X509Certificate_Private_Field field) { 4380 static void Pnacl_M19_PPB_X509Certificate_Private_GetField(struct PP_Var* _struc t_result, PP_Resource resource, PP_X509Certificate_Private_Field field) {
4381 const struct PPB_X509Certificate_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_X5 09Certificate_Private_0_1.real_iface; 4381 const struct PPB_X509Certificate_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_X5 09Certificate_Private_0_1.real_iface;
4382 *_struct_result = iface->GetField(resource, field); 4382 *_struct_result = iface->GetField(resource, field);
4383 } 4383 }
4384 4384
4385 /* End wrapper methods for PPB_X509Certificate_Private_0_1 */ 4385 /* End wrapper methods for PPB_X509Certificate_Private_0_1 */
4386 4386
4387 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_13 */ 4387 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_14 */
4388 4388
4389 static void Pnacl_M41_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) { 4389 static void Pnacl_M43_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system, PP_Bool allow_distinctive_identifier, PP_Bool allo w_persistent_state) {
4390 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4390 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4391 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) = 4391 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system, PP_Bool allow _distinctive_identifier, PP_Bool allow_persistent_state) =
4392 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e); 4392 ((void (*)(PP_Instance instance, struct PP_Var* key_system, PP_Bool allow_di stinctive_identifier, PP_Bool allow_persistent_state))iface->Initialize);
4393 temp_fp(instance, &key_system); 4393 temp_fp(instance, &key_system, allow_distinctive_identifier, allow_persistent_ state);
4394 } 4394 }
4395 4395
4396 static void Pnacl_M41_PPP_ContentDecryptor_Private_SetServerCertificate(PP_Insta nce instance, uint32_t promise_id, struct PP_Var server_certificate) { 4396 static void Pnacl_M43_PPP_ContentDecryptor_Private_SetServerCertificate(PP_Insta nce instance, uint32_t promise_id, struct PP_Var server_certificate) {
4397 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4397 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4398 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* serv er_certificate) = 4398 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* serv er_certificate) =
4399 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* server_ certificate))iface->SetServerCertificate); 4399 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* server_ certificate))iface->SetServerCertificate);
4400 temp_fp(instance, promise_id, &server_certificate); 4400 temp_fp(instance, promise_id, &server_certificate);
4401 } 4401 }
4402 4402
4403 static void Pnacl_M41_PPP_ContentDecryptor_Private_CreateSessionAndGenerateReque st(PP_Instance instance, uint32_t promise_id, PP_SessionType session_type, struc t PP_Var init_data_type, struct PP_Var init_data) { 4403 static void Pnacl_M43_PPP_ContentDecryptor_Private_CreateSessionAndGenerateReque st(PP_Instance instance, uint32_t promise_id, PP_SessionType session_type, struc t PP_Var init_data_type, struct PP_Var init_data) {
4404 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4404 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4405 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, PP_SessionType sess ion_type, struct PP_Var* init_data_type, struct PP_Var* init_data) = 4405 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, PP_SessionType sess ion_type, struct PP_Var* init_data_type, struct PP_Var* init_data) =
4406 ((void (*)(PP_Instance instance, uint32_t promise_id, PP_SessionType session _type, struct PP_Var* init_data_type, struct PP_Var* init_data))iface->CreateSes sionAndGenerateRequest); 4406 ((void (*)(PP_Instance instance, uint32_t promise_id, PP_SessionType session _type, struct PP_Var* init_data_type, struct PP_Var* init_data))iface->CreateSes sionAndGenerateRequest);
4407 temp_fp(instance, promise_id, session_type, &init_data_type, &init_data); 4407 temp_fp(instance, promise_id, session_type, &init_data_type, &init_data);
4408 } 4408 }
4409 4409
4410 static void Pnacl_M41_PPP_ContentDecryptor_Private_LoadSession(PP_Instance insta nce, uint32_t promise_id, PP_SessionType session_type, struct PP_Var session_id) { 4410 static void Pnacl_M43_PPP_ContentDecryptor_Private_LoadSession(PP_Instance insta nce, uint32_t promise_id, PP_SessionType session_type, struct PP_Var session_id) {
4411 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4411 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4412 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, PP_SessionType sess ion_type, struct PP_Var* session_id) = 4412 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, PP_SessionType sess ion_type, struct PP_Var* session_id) =
4413 ((void (*)(PP_Instance instance, uint32_t promise_id, PP_SessionType session _type, struct PP_Var* session_id))iface->LoadSession); 4413 ((void (*)(PP_Instance instance, uint32_t promise_id, PP_SessionType session _type, struct PP_Var* session_id))iface->LoadSession);
4414 temp_fp(instance, promise_id, session_type, &session_id); 4414 temp_fp(instance, promise_id, session_type, &session_id);
4415 } 4415 }
4416 4416
4417 static void Pnacl_M41_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t promise_id, struct PP_Var session_id, struct PP_Var response) { 4417 static void Pnacl_M43_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t promise_id, struct PP_Var session_id, struct PP_Var response) {
4418 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4418 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4419 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* sess ion_id, struct PP_Var* response) = 4419 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* sess ion_id, struct PP_Var* response) =
4420 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* session _id, struct PP_Var* response))iface->UpdateSession); 4420 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* session _id, struct PP_Var* response))iface->UpdateSession);
4421 temp_fp(instance, promise_id, &session_id, &response); 4421 temp_fp(instance, promise_id, &session_id, &response);
4422 } 4422 }
4423 4423
4424 static void Pnacl_M41_PPP_ContentDecryptor_Private_CloseSession(PP_Instance inst ance, uint32_t promise_id, struct PP_Var session_id) { 4424 static void Pnacl_M43_PPP_ContentDecryptor_Private_CloseSession(PP_Instance inst ance, uint32_t promise_id, struct PP_Var session_id) {
4425 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4425 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4426 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* sess ion_id) = 4426 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* sess ion_id) =
4427 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* session _id))iface->CloseSession); 4427 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* session _id))iface->CloseSession);
4428 temp_fp(instance, promise_id, &session_id); 4428 temp_fp(instance, promise_id, &session_id);
4429 } 4429 }
4430 4430
4431 static void Pnacl_M41_PPP_ContentDecryptor_Private_RemoveSession(PP_Instance ins tance, uint32_t promise_id, struct PP_Var session_id) { 4431 static void Pnacl_M43_PPP_ContentDecryptor_Private_RemoveSession(PP_Instance ins tance, uint32_t promise_id, struct PP_Var session_id) {
4432 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4432 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4433 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* sess ion_id) = 4433 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* sess ion_id) =
4434 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* session _id))iface->RemoveSession); 4434 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* session _id))iface->RemoveSession);
4435 temp_fp(instance, promise_id, &session_id); 4435 temp_fp(instance, promise_id, &session_id);
4436 } 4436 }
4437 4437
4438 static void Pnacl_M41_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) { 4438 static void Pnacl_M43_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) {
4439 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4439 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4440 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) = 4440 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) =
4441 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt); 4441 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt);
4442 temp_fp(instance, encrypted_block, encrypted_block_info); 4442 temp_fp(instance, encrypted_block, encrypted_block_info);
4443 } 4443 }
4444 4444
4445 static void Pnacl_M41_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 4445 static void Pnacl_M43_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
4446 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4446 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4447 void (*temp_fp)(PP_Instance instance, const struct PP_AudioDecoderConfig* deco der_config, PP_Resource codec_extra_data) = 4447 void (*temp_fp)(PP_Instance instance, const struct PP_AudioDecoderConfig* deco der_config, PP_Resource codec_extra_data) =
4448 ((void (*)(PP_Instance instance, const struct PP_AudioDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeAudioDecoder); 4448 ((void (*)(PP_Instance instance, const struct PP_AudioDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeAudioDecoder);
4449 temp_fp(instance, decoder_config, codec_extra_data); 4449 temp_fp(instance, decoder_config, codec_extra_data);
4450 } 4450 }
4451 4451
4452 static void Pnacl_M41_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Ins tance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 4452 static void Pnacl_M43_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Ins tance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
4453 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4453 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4454 void (*temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* deco der_config, PP_Resource codec_extra_data) = 4454 void (*temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* deco der_config, PP_Resource codec_extra_data) =
4455 ((void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder); 4455 ((void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder);
4456 temp_fp(instance, decoder_config, codec_extra_data); 4456 temp_fp(instance, decoder_config, codec_extra_data);
4457 } 4457 }
4458 4458
4459 static void Pnacl_M41_PPP_ContentDecryptor_Private_DeinitializeDecoder(PP_Instan ce instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 4459 static void Pnacl_M43_PPP_ContentDecryptor_Private_DeinitializeDecoder(PP_Instan ce instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
4460 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4460 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4461 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) = 4461 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) =
4462 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->DeinitializeDecoder); 4462 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->DeinitializeDecoder);
4463 temp_fp(instance, decoder_type, request_id); 4463 temp_fp(instance, decoder_type, request_id);
4464 } 4464 }
4465 4465
4466 static void Pnacl_M41_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 4466 static void Pnacl_M43_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
4467 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4467 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4468 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) = 4468 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) =
4469 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->ResetDecoder); 4469 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->ResetDecoder);
4470 temp_fp(instance, decoder_type, request_id); 4470 temp_fp(instance, decoder_type, request_id);
4471 } 4471 }
4472 4472
4473 static void Pnacl_M41_PPP_ContentDecryptor_Private_DecryptAndDecode(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, con st struct PP_EncryptedBlockInfo* encrypted_block_info) { 4473 static void Pnacl_M43_PPP_ContentDecryptor_Private_DecryptAndDecode(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, con st struct PP_EncryptedBlockInfo* encrypted_block_info) {
4474 const struct PPP_ContentDecryptor_Private_0_13 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_13.real_iface; 4474 const struct PPP_ContentDecryptor_Private_0_14 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_14.real_iface;
4475 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_ Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_i nfo) = 4475 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_ Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_i nfo) =
4476 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Res ource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info ))iface->DecryptAndDecode); 4476 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Res ource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info ))iface->DecryptAndDecode);
4477 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info); 4477 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info);
4478 } 4478 }
4479 4479
4480 /* End wrapper methods for PPP_ContentDecryptor_Private_0_13 */ 4480 /* End wrapper methods for PPP_ContentDecryptor_Private_0_14 */
4481 4481
4482 /* Not generating wrapper methods for PPP_Find_Private_0_3 */ 4482 /* Not generating wrapper methods for PPP_Find_Private_0_3 */
4483 4483
4484 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ 4484 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */
4485 4485
4486 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */ 4486 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */
4487 4487
4488 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */ 4488 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */
4489 4489
4490 /* Begin wrapper methods for PPP_Instance_Private_0_1 */ 4490 /* Begin wrapper methods for PPP_Instance_Private_0_1 */
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
5676 .Close = (void (*)(PP_Resource source))&Pnacl_M28_PPB_VideoSource_Private_Cl ose 5676 .Close = (void (*)(PP_Resource source))&Pnacl_M28_PPB_VideoSource_Private_Cl ose
5677 }; 5677 };
5678 5678
5679 static const struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certi ficate_Private_0_1 = { 5679 static const struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certi ficate_Private_0_1 = {
5680 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_X509Certific ate_Private_Create, 5680 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_X509Certific ate_Private_Create,
5681 .IsX509CertificatePrivate = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PP B_X509Certificate_Private_IsX509CertificatePrivate, 5681 .IsX509CertificatePrivate = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PP B_X509Certificate_Private_IsX509CertificatePrivate,
5682 .Initialize = (PP_Bool (*)(PP_Resource resource, const char* bytes, uint32_t length))&Pnacl_M19_PPB_X509Certificate_Private_Initialize, 5682 .Initialize = (PP_Bool (*)(PP_Resource resource, const char* bytes, uint32_t length))&Pnacl_M19_PPB_X509Certificate_Private_Initialize,
5683 .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Priv ate_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField 5683 .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Priv ate_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField
5684 }; 5684 };
5685 5685
5686 static const struct PPP_ContentDecryptor_Private_0_13 Pnacl_Wrappers_PPP_Content Decryptor_Private_0_13 = { 5686 static const struct PPP_ContentDecryptor_Private_0_14 Pnacl_Wrappers_PPP_Content Decryptor_Private_0_14 = {
5687 .Initialize = &Pnacl_M41_PPP_ContentDecryptor_Private_Initialize, 5687 .Initialize = &Pnacl_M43_PPP_ContentDecryptor_Private_Initialize,
5688 .SetServerCertificate = &Pnacl_M41_PPP_ContentDecryptor_Private_SetServerCer tificate, 5688 .SetServerCertificate = &Pnacl_M43_PPP_ContentDecryptor_Private_SetServerCer tificate,
5689 .CreateSessionAndGenerateRequest = &Pnacl_M41_PPP_ContentDecryptor_Private_C reateSessionAndGenerateRequest, 5689 .CreateSessionAndGenerateRequest = &Pnacl_M43_PPP_ContentDecryptor_Private_C reateSessionAndGenerateRequest,
5690 .LoadSession = &Pnacl_M41_PPP_ContentDecryptor_Private_LoadSession, 5690 .LoadSession = &Pnacl_M43_PPP_ContentDecryptor_Private_LoadSession,
5691 .UpdateSession = &Pnacl_M41_PPP_ContentDecryptor_Private_UpdateSession, 5691 .UpdateSession = &Pnacl_M43_PPP_ContentDecryptor_Private_UpdateSession,
5692 .CloseSession = &Pnacl_M41_PPP_ContentDecryptor_Private_CloseSession, 5692 .CloseSession = &Pnacl_M43_PPP_ContentDecryptor_Private_CloseSession,
5693 .RemoveSession = &Pnacl_M41_PPP_ContentDecryptor_Private_RemoveSession, 5693 .RemoveSession = &Pnacl_M43_PPP_ContentDecryptor_Private_RemoveSession,
5694 .Decrypt = &Pnacl_M41_PPP_ContentDecryptor_Private_Decrypt, 5694 .Decrypt = &Pnacl_M43_PPP_ContentDecryptor_Private_Decrypt,
5695 .InitializeAudioDecoder = &Pnacl_M41_PPP_ContentDecryptor_Private_Initialize AudioDecoder, 5695 .InitializeAudioDecoder = &Pnacl_M43_PPP_ContentDecryptor_Private_Initialize AudioDecoder,
5696 .InitializeVideoDecoder = &Pnacl_M41_PPP_ContentDecryptor_Private_Initialize VideoDecoder, 5696 .InitializeVideoDecoder = &Pnacl_M43_PPP_ContentDecryptor_Private_Initialize VideoDecoder,
5697 .DeinitializeDecoder = &Pnacl_M41_PPP_ContentDecryptor_Private_DeinitializeD ecoder, 5697 .DeinitializeDecoder = &Pnacl_M43_PPP_ContentDecryptor_Private_DeinitializeD ecoder,
5698 .ResetDecoder = &Pnacl_M41_PPP_ContentDecryptor_Private_ResetDecoder, 5698 .ResetDecoder = &Pnacl_M43_PPP_ContentDecryptor_Private_ResetDecoder,
5699 .DecryptAndDecode = &Pnacl_M41_PPP_ContentDecryptor_Private_DecryptAndDecode 5699 .DecryptAndDecode = &Pnacl_M43_PPP_ContentDecryptor_Private_DecryptAndDecode
5700 }; 5700 };
5701 5701
5702 /* Not generating wrapper interface for PPP_Find_Private_0_3 */ 5702 /* Not generating wrapper interface for PPP_Find_Private_0_3 */
5703 5703
5704 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */ 5704 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */
5705 5705
5706 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ 5706 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */
5707 5707
5708 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ 5708 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */
5709 5709
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
6360 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoSource_Private_0_1, 6360 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoSource_Private_0_1,
6361 .real_iface = NULL 6361 .real_iface = NULL
6362 }; 6362 };
6363 6363
6364 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1 = { 6364 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1 = {
6365 .iface_macro = PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1, 6365 .iface_macro = PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1,
6366 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_X509Certificate_Private_0_ 1, 6366 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_X509Certificate_Private_0_ 1,
6367 .real_iface = NULL 6367 .real_iface = NULL
6368 }; 6368 };
6369 6369
6370 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_13 = { 6370 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_14 = {
6371 .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_13, 6371 .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_14,
6372 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0 _13, 6372 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0 _14,
6373 .real_iface = NULL 6373 .real_iface = NULL
6374 }; 6374 };
6375 6375
6376 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = { 6376 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = {
6377 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1, 6377 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1,
6378 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1, 6378 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1,
6379 .real_iface = NULL 6379 .real_iface = NULL
6380 }; 6380 };
6381 6381
6382 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 6382 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
6486 &Pnacl_WrapperInfo_PPB_UMA_Private_0_3, 6486 &Pnacl_WrapperInfo_PPB_UMA_Private_0_3,
6487 &Pnacl_WrapperInfo_PPB_VideoDestination_Private_0_1, 6487 &Pnacl_WrapperInfo_PPB_VideoDestination_Private_0_1,
6488 &Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1, 6488 &Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1,
6489 &Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1, 6489 &Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1,
6490 NULL 6490 NULL
6491 }; 6491 };
6492 6492
6493 static struct __PnaclWrapperInfo *s_ppp_wrappers[] = { 6493 static struct __PnaclWrapperInfo *s_ppp_wrappers[] = {
6494 &Pnacl_WrapperInfo_PPP_Messaging_1_0, 6494 &Pnacl_WrapperInfo_PPP_Messaging_1_0,
6495 &Pnacl_WrapperInfo_PPP_Selection_Dev_0_3, 6495 &Pnacl_WrapperInfo_PPP_Selection_Dev_0_3,
6496 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_13, 6496 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_14,
6497 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1, 6497 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1,
6498 NULL 6498 NULL
6499 }; 6499 };
6500 6500
6501 6501
6502 6502
6503 static PPB_GetInterface __real_PPBGetInterface; 6503 static PPB_GetInterface __real_PPBGetInterface;
6504 static PPP_GetInterface_Type __real_PPPGetInterface; 6504 static PPP_GetInterface_Type __real_PPPGetInterface;
6505 6505
6506 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { 6506 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
6559 6559
6560 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6560 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6561 if (wrapper->real_iface == NULL) { 6561 if (wrapper->real_iface == NULL) {
6562 const void *iface = (*__real_PPPGetInterface)(name); 6562 const void *iface = (*__real_PPPGetInterface)(name);
6563 if (NULL == iface) return NULL; 6563 if (NULL == iface) return NULL;
6564 wrapper->real_iface = iface; 6564 wrapper->real_iface = iface;
6565 } 6565 }
6566 6566
6567 return wrapper->wrapped_iface; 6567 return wrapper->wrapped_iface;
6568 } 6568 }
OLDNEW
« no previous file with comments | « ppapi/cpp/private/content_decryptor_private.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698