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

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

Issue 105383002: Rename EME WD call parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit Created 7 years 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) 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 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2343 /* Not generating wrapper methods for PPP_VideoDecoder_Dev_0_10 */ 2343 /* Not generating wrapper methods for PPP_VideoDecoder_Dev_0_10 */
2344 2344
2345 /* Not generating wrapper methods for PPP_VideoDecoder_Dev_0_11 */ 2345 /* Not generating wrapper methods for PPP_VideoDecoder_Dev_0_11 */
2346 2346
2347 /* Not generating wrapper methods for PPP_Widget_Dev_0_2 */ 2347 /* Not generating wrapper methods for PPP_Widget_Dev_0_2 */
2348 2348
2349 /* Not generating wrapper methods for PPP_Zoom_Dev_0_3 */ 2349 /* Not generating wrapper methods for PPP_Zoom_Dev_0_3 */
2350 2350
2351 /* Begin wrapper methods for PPB_ContentDecryptor_Private_0_9 */ 2351 /* Begin wrapper methods for PPB_ContentDecryptor_Private_0_9 */
2352 2352
2353 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionCreated(PP_Instance in stance, uint32_t reference_id, struct PP_Var* web_session_id) { 2353 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionCreated(PP_Instance in stance, uint32_t session_id, struct PP_Var* web_session_id) {
2354 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2354 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2355 iface->SessionCreated(instance, reference_id, *web_session_id); 2355 iface->SessionCreated(instance, session_id, *web_session_id);
2356 } 2356 }
2357 2357
2358 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionMessage(PP_Instance in stance, uint32_t reference_id, struct PP_Var* message, struct PP_Var* destinatio n_url) { 2358 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionMessage(PP_Instance in stance, uint32_t session_id, struct PP_Var* message, struct PP_Var* destination_ url) {
2359 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2359 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2360 iface->SessionMessage(instance, reference_id, *message, *destination_url); 2360 iface->SessionMessage(instance, session_id, *message, *destination_url);
2361 } 2361 }
2362 2362
2363 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionReady(PP_Instance inst ance, uint32_t reference_id) { 2363 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionReady(PP_Instance inst ance, uint32_t session_id) {
2364 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2364 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2365 iface->SessionReady(instance, reference_id); 2365 iface->SessionReady(instance, session_id);
2366 } 2366 }
2367 2367
2368 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionClosed(PP_Instance ins tance, uint32_t reference_id) { 2368 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionClosed(PP_Instance ins tance, uint32_t session_id) {
2369 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2369 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2370 iface->SessionClosed(instance, reference_id); 2370 iface->SessionClosed(instance, session_id);
2371 } 2371 }
2372 2372
2373 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionError(PP_Instance inst ance, uint32_t reference_id, int32_t media_error, int32_t system_code) { 2373 static void Pnacl_M33_PPB_ContentDecryptor_Private_SessionError(PP_Instance inst ance, uint32_t session_id, int32_t media_error, int32_t system_code) {
2374 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2374 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2375 iface->SessionError(instance, reference_id, media_error, system_code); 2375 iface->SessionError(instance, session_id, media_error, system_code);
2376 } 2376 }
2377 2377
2378 static void Pnacl_M33_PPB_ContentDecryptor_Private_DeliverBlock(PP_Instance inst ance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted _block_info) { 2378 static void Pnacl_M33_PPB_ContentDecryptor_Private_DeliverBlock(PP_Instance inst ance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted _block_info) {
2379 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2379 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2380 iface->DeliverBlock(instance, decrypted_block, decrypted_block_info); 2380 iface->DeliverBlock(instance, decrypted_block, decrypted_block_info);
2381 } 2381 }
2382 2382
2383 static void Pnacl_M33_PPB_ContentDecryptor_Private_DecoderInitializeDone(PP_Inst ance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id, PP_Bool success) { 2383 static void Pnacl_M33_PPB_ContentDecryptor_Private_DecoderInitializeDone(PP_Inst ance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id, PP_Bool success) {
2384 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface; 2384 const struct PPB_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_9.real_iface;
2385 iface->DecoderInitializeDone(instance, decoder_type, request_id, success); 2385 iface->DecoderInitializeDone(instance, decoder_type, request_id, success);
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3767 3767
3768 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_9 */ 3768 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_9 */
3769 3769
3770 static void Pnacl_M33_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) { 3770 static void Pnacl_M33_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) {
3771 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface; 3771 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface;
3772 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) = 3772 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) =
3773 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e); 3773 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e);
3774 temp_fp(instance, &key_system); 3774 temp_fp(instance, &key_system);
3775 } 3775 }
3776 3776
3777 static void Pnacl_M33_PPP_ContentDecryptor_Private_CreateSession(PP_Instance ins tance, uint32_t reference_id, struct PP_Var type, struct PP_Var init_data) { 3777 static void Pnacl_M33_PPP_ContentDecryptor_Private_CreateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var type, struct PP_Var init_data) {
3778 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface; 3778 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface;
3779 void (*temp_fp)(PP_Instance instance, uint32_t reference_id, struct PP_Var* ty pe, struct PP_Var* init_data) = 3779 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* type , struct PP_Var* init_data) =
3780 ((void (*)(PP_Instance instance, uint32_t reference_id, struct PP_Var* type, struct PP_Var* init_data))iface->CreateSession); 3780 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* type, s truct PP_Var* init_data))iface->CreateSession);
3781 temp_fp(instance, reference_id, &type, &init_data); 3781 temp_fp(instance, session_id, &type, &init_data);
3782 } 3782 }
3783 3783
3784 static void Pnacl_M33_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t reference_id, struct PP_Var response) { 3784 static void Pnacl_M33_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var response) {
3785 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface; 3785 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface;
3786 void (*temp_fp)(PP_Instance instance, uint32_t reference_id, struct PP_Var* re sponse) = 3786 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* resp onse) =
3787 ((void (*)(PP_Instance instance, uint32_t reference_id, struct PP_Var* respo nse))iface->UpdateSession); 3787 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* respons e))iface->UpdateSession);
3788 temp_fp(instance, reference_id, &response); 3788 temp_fp(instance, session_id, &response);
3789 } 3789 }
3790 3790
3791 static void Pnacl_M33_PPP_ContentDecryptor_Private_ReleaseSession(PP_Instance in stance, uint32_t reference_id) { 3791 static void Pnacl_M33_PPP_ContentDecryptor_Private_ReleaseSession(PP_Instance in stance, uint32_t session_id) {
3792 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface; 3792 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface;
3793 void (*temp_fp)(PP_Instance instance, uint32_t reference_id) = 3793 void (*temp_fp)(PP_Instance instance, uint32_t session_id) =
3794 ((void (*)(PP_Instance instance, uint32_t reference_id))iface->ReleaseSessio n); 3794 ((void (*)(PP_Instance instance, uint32_t session_id))iface->ReleaseSession) ;
3795 temp_fp(instance, reference_id); 3795 temp_fp(instance, session_id);
3796 } 3796 }
3797 3797
3798 static void Pnacl_M33_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) { 3798 static void Pnacl_M33_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) {
3799 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface; 3799 const struct PPP_ContentDecryptor_Private_0_9 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_9.real_iface;
3800 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) = 3800 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) =
3801 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt); 3801 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt);
3802 temp_fp(instance, encrypted_block, encrypted_block_info); 3802 temp_fp(instance, encrypted_block, encrypted_block_info);
3803 } 3803 }
3804 3804
3805 static void Pnacl_M33_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 3805 static void Pnacl_M33_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
4709 4709
4710 /* Not generating wrapper interface for PPP_VideoDecoder_Dev_0_10 */ 4710 /* Not generating wrapper interface for PPP_VideoDecoder_Dev_0_10 */
4711 4711
4712 /* Not generating wrapper interface for PPP_VideoDecoder_Dev_0_11 */ 4712 /* Not generating wrapper interface for PPP_VideoDecoder_Dev_0_11 */
4713 4713
4714 /* Not generating wrapper interface for PPP_Widget_Dev_0_2 */ 4714 /* Not generating wrapper interface for PPP_Widget_Dev_0_2 */
4715 4715
4716 /* Not generating wrapper interface for PPP_Zoom_Dev_0_3 */ 4716 /* Not generating wrapper interface for PPP_Zoom_Dev_0_3 */
4717 4717
4718 struct PPB_ContentDecryptor_Private_0_9 Pnacl_Wrappers_PPB_ContentDecryptor_Priv ate_0_9 = { 4718 struct PPB_ContentDecryptor_Private_0_9 Pnacl_Wrappers_PPB_ContentDecryptor_Priv ate_0_9 = {
4719 .SessionCreated = (void (*)(PP_Instance instance, uint32_t reference_id, str uct PP_Var web_session_id))&Pnacl_M33_PPB_ContentDecryptor_Private_SessionCreate d, 4719 .SessionCreated = (void (*)(PP_Instance instance, uint32_t session_id, struc t PP_Var web_session_id))&Pnacl_M33_PPB_ContentDecryptor_Private_SessionCreated,
4720 .SessionMessage = (void (*)(PP_Instance instance, uint32_t reference_id, str uct PP_Var message, struct PP_Var destination_url))&Pnacl_M33_PPB_ContentDecrypt or_Private_SessionMessage, 4720 .SessionMessage = (void (*)(PP_Instance instance, uint32_t session_id, struc t PP_Var message, struct PP_Var destination_url))&Pnacl_M33_PPB_ContentDecryptor _Private_SessionMessage,
4721 .SessionReady = (void (*)(PP_Instance instance, uint32_t reference_id))&Pnac l_M33_PPB_ContentDecryptor_Private_SessionReady, 4721 .SessionReady = (void (*)(PP_Instance instance, uint32_t session_id))&Pnacl_ M33_PPB_ContentDecryptor_Private_SessionReady,
4722 .SessionClosed = (void (*)(PP_Instance instance, uint32_t reference_id))&Pna cl_M33_PPB_ContentDecryptor_Private_SessionClosed, 4722 .SessionClosed = (void (*)(PP_Instance instance, uint32_t session_id))&Pnacl _M33_PPB_ContentDecryptor_Private_SessionClosed,
4723 .SessionError = (void (*)(PP_Instance instance, uint32_t reference_id, int32 _t media_error, int32_t system_code))&Pnacl_M33_PPB_ContentDecryptor_Private_Ses sionError, 4723 .SessionError = (void (*)(PP_Instance instance, uint32_t session_id, int32_t media_error, int32_t system_code))&Pnacl_M33_PPB_ContentDecryptor_Private_Sessi onError,
4724 .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M33_PPB_Conten tDecryptor_Private_DeliverBlock, 4724 .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M33_PPB_Conten tDecryptor_Private_DeliverBlock,
4725 .DecoderInitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStreamT ype decoder_type, uint32_t request_id, PP_Bool success))&Pnacl_M33_PPB_ContentDe cryptor_Private_DecoderInitializeDone, 4725 .DecoderInitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStreamT ype decoder_type, uint32_t request_id, PP_Bool success))&Pnacl_M33_PPB_ContentDe cryptor_Private_DecoderInitializeDone,
4726 .DecoderDeinitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStrea mType decoder_type, uint32_t request_id))&Pnacl_M33_PPB_ContentDecryptor_Private _DecoderDeinitializeDone, 4726 .DecoderDeinitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStrea mType decoder_type, uint32_t request_id))&Pnacl_M33_PPB_ContentDecryptor_Private _DecoderDeinitializeDone,
4727 .DecoderResetDone = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, uint32_t request_id))&Pnacl_M33_PPB_ContentDecryptor_Private_Decode rResetDone, 4727 .DecoderResetDone = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, uint32_t request_id))&Pnacl_M33_PPB_ContentDecryptor_Private_Decode rResetDone,
4728 .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M33_PPB_Conten tDecryptor_Private_DeliverFrame, 4728 .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M33_PPB_Conten tDecryptor_Private_DeliverFrame,
4729 .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted_sample_info))&Pnacl_M33_PPB_Conte ntDecryptor_Private_DeliverSamples 4729 .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted_sample_info))&Pnacl_M33_PPB_Conte ntDecryptor_Private_DeliverSamples
4730 }; 4730 };
4731 4731
4732 struct PPB_Ext_CrxFileSystem_Private_0_1 Pnacl_Wrappers_PPB_Ext_CrxFileSystem_Pr ivate_0_1 = { 4732 struct PPB_Ext_CrxFileSystem_Private_0_1 Pnacl_Wrappers_PPB_Ext_CrxFileSystem_Pr ivate_0_1 = {
4733 .Open = (int32_t (*)(PP_Instance instance, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_Ext_CrxFileSystem_Private_Open 4733 .Open = (int32_t (*)(PP_Instance instance, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_Ext_CrxFileSystem_Private_Open
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
5958 if (NULL == iface) return NULL; 5958 if (NULL == iface) return NULL;
5959 wrapper->real_iface = iface; 5959 wrapper->real_iface = iface;
5960 } 5960 }
5961 5961
5962 if (wrapper->wrapped_iface) { 5962 if (wrapper->wrapped_iface) {
5963 return wrapper->wrapped_iface; 5963 return wrapper->wrapped_iface;
5964 } else { 5964 } else {
5965 return wrapper->real_iface; 5965 return wrapper->real_iface;
5966 } 5966 }
5967 } 5967 }
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