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

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

Issue 11087044: Generalize Pepper CDM API decrypt and decode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 2 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
« 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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 /* Last generated from IDL: Thu Oct 11 21:05:40 2012. */ 6 /* Last generated from IDL: Thu Oct 11 22:28:05 2012. */
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"
11 #include "ppapi/c/dev/ppb_buffer_dev.h" 11 #include "ppapi/c/dev/ppb_buffer_dev.h"
12 #include "ppapi/c/dev/ppb_console_dev.h" 12 #include "ppapi/c/dev/ppb_console_dev.h"
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
14 #include "ppapi/c/dev/ppb_device_ref_dev.h" 14 #include "ppapi/c/dev/ppb_device_ref_dev.h"
15 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
16 #include "ppapi/c/dev/ppb_find_dev.h" 16 #include "ppapi/c/dev/ppb_find_dev.h"
(...skipping 3457 matching lines...) Expand 10 before | Expand all | Expand 10 after
3474 void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_DecryptorS treamType decoder_type, uint32_t request_id) = ((void (__attribute__((pnaclcall) ) *)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request _id))iface->DeinitializeDecoder); 3474 void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_DecryptorS treamType decoder_type, uint32_t request_id) = ((void (__attribute__((pnaclcall) ) *)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request _id))iface->DeinitializeDecoder);
3475 temp_fp(instance, decoder_type, request_id); 3475 temp_fp(instance, decoder_type, request_id);
3476 } 3476 }
3477 3477
3478 static void Pnacl_M24_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 3478 static void Pnacl_M24_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
3479 const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_3.real_iface; 3479 const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_3.real_iface;
3480 void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_DecryptorS treamType decoder_type, uint32_t request_id) = ((void (__attribute__((pnaclcall) ) *)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request _id))iface->ResetDecoder); 3480 void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_DecryptorS treamType decoder_type, uint32_t request_id) = ((void (__attribute__((pnaclcall) ) *)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request _id))iface->ResetDecoder);
3481 temp_fp(instance, decoder_type, request_id); 3481 temp_fp(instance, decoder_type, request_id);
3482 } 3482 }
3483 3483
3484 static void Pnacl_M24_PPP_ContentDecryptor_Private_DecryptAndDecodeFrame(PP_Inst ance instance, PP_Resource encrypted_video_frame, const struct PP_EncryptedVideo FrameInfo* encrypted_video_frame_info) { 3484 static void Pnacl_M24_PPP_ContentDecryptor_Private_DecryptAndDecode(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, con st struct PP_EncryptedBlockInfo* encrypted_block_info) {
3485 const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_3.real_iface; 3485 const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_C ontentDecryptor_Private_0_3.real_iface;
3486 void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_Resource e ncrypted_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_f rame_info) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, PP_Reso urce encrypted_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_v ideo_frame_info))iface->DecryptAndDecodeFrame); 3486 void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_DecryptorS treamType decoder_type, PP_Resource encrypted_buffer, const struct PP_EncryptedB lockInfo* encrypted_block_info) = ((void (__attribute__((pnaclcall)) *)(PP_Insta nce instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info))iface->DecryptAndDeco de);
3487 temp_fp(instance, encrypted_video_frame, encrypted_video_frame_info); 3487 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info);
3488 } 3488 }
3489 3489
3490 /* End wrapper methods for PPP_ContentDecryptor_Private_0_3 */ 3490 /* End wrapper methods for PPP_ContentDecryptor_Private_0_3 */
3491 3491
3492 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ 3492 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */
3493 3493
3494 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */ 3494 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */
3495 3495
3496 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */ 3496 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */
3497 3497
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
4295 }; 4295 };
4296 4296
4297 struct PPP_ContentDecryptor_Private_0_3 Pnacl_Wrappers_PPP_ContentDecryptor_Priv ate_0_3 = { 4297 struct PPP_ContentDecryptor_Private_0_3 Pnacl_Wrappers_PPP_ContentDecryptor_Priv ate_0_3 = {
4298 .GenerateKeyRequest = (void (*)(PP_Instance instance, struct PP_Var key_syst em, struct PP_Var init_data))&Pnacl_M24_PPP_ContentDecryptor_Private_GenerateKey Request, 4298 .GenerateKeyRequest = (void (*)(PP_Instance instance, struct PP_Var key_syst em, struct PP_Var init_data))&Pnacl_M24_PPP_ContentDecryptor_Private_GenerateKey Request,
4299 .AddKey = (void (*)(PP_Instance instance, struct PP_Var session_id, struct P P_Var key, struct PP_Var init_data))&Pnacl_M24_PPP_ContentDecryptor_Private_AddK ey, 4299 .AddKey = (void (*)(PP_Instance instance, struct PP_Var session_id, struct P P_Var key, struct PP_Var init_data))&Pnacl_M24_PPP_ContentDecryptor_Private_AddK ey,
4300 .CancelKeyRequest = (void (*)(PP_Instance instance, struct PP_Var session_id ))&Pnacl_M24_PPP_ContentDecryptor_Private_CancelKeyRequest, 4300 .CancelKeyRequest = (void (*)(PP_Instance instance, struct PP_Var session_id ))&Pnacl_M24_PPP_ContentDecryptor_Private_CancelKeyRequest,
4301 .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, cons t struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M24_PPP_ContentDecr yptor_Private_Decrypt, 4301 .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, cons t struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M24_PPP_ContentDecr yptor_Private_Decrypt,
4302 .InitializeVideoDecoder = (void (*)(PP_Instance instance, const struct PP_Vi deoDecoderConfig* decoder_config, PP_Resource codec_extra_data))&Pnacl_M24_PPP_C ontentDecryptor_Private_InitializeVideoDecoder, 4302 .InitializeVideoDecoder = (void (*)(PP_Instance instance, const struct PP_Vi deoDecoderConfig* decoder_config, PP_Resource codec_extra_data))&Pnacl_M24_PPP_C ontentDecryptor_Private_InitializeVideoDecoder,
4303 .DeinitializeDecoder = (void (*)(PP_Instance instance, PP_DecryptorStreamTyp e decoder_type, uint32_t request_id))&Pnacl_M24_PPP_ContentDecryptor_Private_Dei nitializeDecoder, 4303 .DeinitializeDecoder = (void (*)(PP_Instance instance, PP_DecryptorStreamTyp e decoder_type, uint32_t request_id))&Pnacl_M24_PPP_ContentDecryptor_Private_Dei nitializeDecoder,
4304 .ResetDecoder = (void (*)(PP_Instance instance, PP_DecryptorStreamType decod er_type, uint32_t request_id))&Pnacl_M24_PPP_ContentDecryptor_Private_ResetDecod er, 4304 .ResetDecoder = (void (*)(PP_Instance instance, PP_DecryptorStreamType decod er_type, uint32_t request_id))&Pnacl_M24_PPP_ContentDecryptor_Private_ResetDecod er,
4305 .DecryptAndDecodeFrame = (void (*)(PP_Instance instance, PP_Resource encrypt ed_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_i nfo))&Pnacl_M24_PPP_ContentDecryptor_Private_DecryptAndDecodeFrame 4305 .DecryptAndDecode = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, PP_Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* e ncrypted_block_info))&Pnacl_M24_PPP_ContentDecryptor_Private_DecryptAndDecode
4306 }; 4306 };
4307 4307
4308 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */ 4308 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */
4309 4309
4310 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ 4310 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */
4311 4311
4312 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ 4312 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */
4313 4313
4314 struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private_0_1 = { 4314 struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private_0_1 = {
4315 .GetInstanceObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M18_PPP _Instance_Private_GetInstanceObject 4315 .GetInstanceObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M18_PPP _Instance_Private_GetInstanceObject
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
5304 } 5304 }
5305 5305
5306 if (wrapper->wrapped_iface) { 5306 if (wrapper->wrapped_iface) {
5307 return wrapper->wrapped_iface; 5307 return wrapper->wrapped_iface;
5308 } else { 5308 } else {
5309 return wrapper->real_iface; 5309 return wrapper->real_iface;
5310 } 5310 }
5311 } 5311 }
5312 5312
5313 #endif 5313 #endif
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