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

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

Issue 265993002: Add Promises for EME (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: latest CDM_5 Created 6 years, 7 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
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/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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3;
157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3; 158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3;
159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_11; 159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_12;
160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DisplayColorProfile_Priva te_0_1; 160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DisplayColorProfile_Priva te_0_1;
161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1; 161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1;
162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1; 162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1;
163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1; 163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1;
164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4; 164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4;
165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5; 165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5;
166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_6; 166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_6;
167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_13_0; 167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_13_0;
168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0; 168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0;
169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0; 169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0;
(...skipping 19 matching lines...) Expand all
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Private_1_0; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Private_1_0;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_3; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_3;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDestination_Private_ 0_1; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDestination_Private_ 0_1;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_11; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_12;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1;
201 /* END Declarations for all Wrapper Infos. */ 201 /* END Declarations for all Wrapper Infos. */
202 202
203 /* Not generating wrapper methods for PPB_Audio_1_0 */ 203 /* Not generating wrapper methods for PPB_Audio_1_0 */
204 204
205 /* Not generating wrapper methods for PPB_Audio_1_1 */ 205 /* Not generating wrapper methods for PPB_Audio_1_1 */
206 206
207 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */ 207 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */
208 208
209 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 209 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
(...skipping 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 /* Not generating wrapper methods for PPP_TextInput_Dev_0_1 */ 2523 /* Not generating wrapper methods for PPP_TextInput_Dev_0_1 */
2524 2524
2525 /* Not generating wrapper methods for PPP_VideoCapture_Dev_0_1 */ 2525 /* Not generating wrapper methods for PPP_VideoCapture_Dev_0_1 */
2526 2526
2527 /* Not generating wrapper methods for PPP_VideoDecoder_Dev_0_11 */ 2527 /* Not generating wrapper methods for PPP_VideoDecoder_Dev_0_11 */
2528 2528
2529 /* Not generating wrapper methods for PPP_Widget_Dev_0_2 */ 2529 /* Not generating wrapper methods for PPP_Widget_Dev_0_2 */
2530 2530
2531 /* Not generating wrapper methods for PPP_Zoom_Dev_0_3 */ 2531 /* Not generating wrapper methods for PPP_Zoom_Dev_0_3 */
2532 2532
2533 /* Begin wrapper methods for PPB_ContentDecryptor_Private_0_11 */ 2533 /* Begin wrapper methods for PPB_ContentDecryptor_Private_0_12 */
2534 2534
2535 static void Pnacl_M35_PPB_ContentDecryptor_Private_SessionCreated(PP_Instance in stance, uint32_t session_id, struct PP_Var* web_session_id) { 2535 static void Pnacl_M36_PPB_ContentDecryptor_Private_PromiseResolved(PP_Instance i nstance, uint32_t promise_id) {
2536 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2536 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2537 iface->SessionCreated(instance, session_id, *web_session_id); 2537 iface->PromiseResolved(instance, promise_id);
2538 } 2538 }
2539 2539
2540 static void Pnacl_M35_PPB_ContentDecryptor_Private_SessionMessage(PP_Instance in stance, uint32_t session_id, struct PP_Var* message, struct PP_Var* destination_ url) { 2540 static void Pnacl_M36_PPB_ContentDecryptor_Private_PromiseResolvedWithSession(PP _Instance instance, uint32_t promise_id, struct PP_Var* web_session_id) {
2541 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2541 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2542 iface->SessionMessage(instance, session_id, *message, *destination_url); 2542 iface->PromiseResolvedWithSession(instance, promise_id, *web_session_id);
2543 } 2543 }
2544 2544
2545 static void Pnacl_M35_PPB_ContentDecryptor_Private_SessionReady(PP_Instance inst ance, uint32_t session_id) { 2545 static void Pnacl_M36_PPB_ContentDecryptor_Private_PromiseRejected(PP_Instance i nstance, uint32_t promise_id, PP_ExceptionCodeType exception_code, uint32_t syst em_code, struct PP_Var* error_description) {
2546 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2546 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2547 iface->SessionReady(instance, session_id); 2547 iface->PromiseRejected(instance, promise_id, exception_code, system_code, *err or_description);
2548 } 2548 }
2549 2549
2550 static void Pnacl_M35_PPB_ContentDecryptor_Private_SessionClosed(PP_Instance ins tance, uint32_t session_id) { 2550 static void Pnacl_M36_PPB_ContentDecryptor_Private_SessionMessage(PP_Instance in stance, struct PP_Var* web_session_id, struct PP_Var* message, struct PP_Var* de stination_url) {
2551 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2551 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2552 iface->SessionClosed(instance, session_id); 2552 iface->SessionMessage(instance, *web_session_id, *message, *destination_url);
2553 } 2553 }
2554 2554
2555 static void Pnacl_M35_PPB_ContentDecryptor_Private_SessionError(PP_Instance inst ance, uint32_t session_id, int32_t media_error, uint32_t system_code) { 2555 static void Pnacl_M36_PPB_ContentDecryptor_Private_SessionReady(PP_Instance inst ance, struct PP_Var* web_session_id) {
2556 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2556 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2557 iface->SessionError(instance, session_id, media_error, system_code); 2557 iface->SessionReady(instance, *web_session_id);
2558 } 2558 }
2559 2559
2560 static void Pnacl_M35_PPB_ContentDecryptor_Private_DeliverBlock(PP_Instance inst ance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted _block_info) { 2560 static void Pnacl_M36_PPB_ContentDecryptor_Private_SessionClosed(PP_Instance ins tance, struct PP_Var* web_session_id) {
2561 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2561 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2562 iface->SessionClosed(instance, *web_session_id);
2563 }
2564
2565 static void Pnacl_M36_PPB_ContentDecryptor_Private_SessionError(PP_Instance inst ance, struct PP_Var* web_session_id, PP_ExceptionCodeType exception_code, uint32 _t system_code, struct PP_Var* error_description) {
2566 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2567 iface->SessionError(instance, *web_session_id, exception_code, system_code, *e rror_description);
2568 }
2569
2570 static void Pnacl_M36_PPB_ContentDecryptor_Private_DeliverBlock(PP_Instance inst ance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted _block_info) {
2571 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2562 iface->DeliverBlock(instance, decrypted_block, decrypted_block_info); 2572 iface->DeliverBlock(instance, decrypted_block, decrypted_block_info);
2563 } 2573 }
2564 2574
2565 static void Pnacl_M35_PPB_ContentDecryptor_Private_DecoderInitializeDone(PP_Inst ance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id, PP_Bool success) { 2575 static void Pnacl_M36_PPB_ContentDecryptor_Private_DecoderInitializeDone(PP_Inst ance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id, PP_Bool success) {
2566 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2576 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2567 iface->DecoderInitializeDone(instance, decoder_type, request_id, success); 2577 iface->DecoderInitializeDone(instance, decoder_type, request_id, success);
2568 } 2578 }
2569 2579
2570 static void Pnacl_M35_PPB_ContentDecryptor_Private_DecoderDeinitializeDone(PP_In stance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 2580 static void Pnacl_M36_PPB_ContentDecryptor_Private_DecoderDeinitializeDone(PP_In stance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
2571 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2581 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2572 iface->DecoderDeinitializeDone(instance, decoder_type, request_id); 2582 iface->DecoderDeinitializeDone(instance, decoder_type, request_id);
2573 } 2583 }
2574 2584
2575 static void Pnacl_M35_PPB_ContentDecryptor_Private_DecoderResetDone(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 2585 static void Pnacl_M36_PPB_ContentDecryptor_Private_DecoderResetDone(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
2576 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2586 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2577 iface->DecoderResetDone(instance, decoder_type, request_id); 2587 iface->DecoderResetDone(instance, decoder_type, request_id);
2578 } 2588 }
2579 2589
2580 static void Pnacl_M35_PPB_ContentDecryptor_Private_DeliverFrame(PP_Instance inst ance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted _frame_info) { 2590 static void Pnacl_M36_PPB_ContentDecryptor_Private_DeliverFrame(PP_Instance inst ance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted _frame_info) {
2581 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2591 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2582 iface->DeliverFrame(instance, decrypted_frame, decrypted_frame_info); 2592 iface->DeliverFrame(instance, decrypted_frame, decrypted_frame_info);
2583 } 2593 }
2584 2594
2585 static void Pnacl_M35_PPB_ContentDecryptor_Private_DeliverSamples(PP_Instance in stance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted _sample_info) { 2595 static void Pnacl_M36_PPB_ContentDecryptor_Private_DeliverSamples(PP_Instance in stance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted _sample_info) {
2586 const struct PPB_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_11.real_iface; 2596 const struct PPB_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPB_ ContentDecryptor_Private_0_12.real_iface;
2587 iface->DeliverSamples(instance, audio_frames, decrypted_sample_info); 2597 iface->DeliverSamples(instance, audio_frames, decrypted_sample_info);
2588 } 2598 }
2589 2599
2590 /* End wrapper methods for PPB_ContentDecryptor_Private_0_11 */ 2600 /* End wrapper methods for PPB_ContentDecryptor_Private_0_12 */
2591 2601
2592 /* Begin wrapper methods for PPB_DisplayColorProfile_Private_0_1 */ 2602 /* Begin wrapper methods for PPB_DisplayColorProfile_Private_0_1 */
2593 2603
2594 static PP_Resource Pnacl_M33_PPB_DisplayColorProfile_Private_Create(PP_Instance instance) { 2604 static PP_Resource Pnacl_M33_PPB_DisplayColorProfile_Private_Create(PP_Instance instance) {
2595 const struct PPB_DisplayColorProfile_Private_0_1 *iface = Pnacl_WrapperInfo_PP B_DisplayColorProfile_Private_0_1.real_iface; 2605 const struct PPB_DisplayColorProfile_Private_0_1 *iface = Pnacl_WrapperInfo_PP B_DisplayColorProfile_Private_0_1.real_iface;
2596 return iface->Create(instance); 2606 return iface->Create(instance);
2597 } 2607 }
2598 2608
2599 static PP_Bool Pnacl_M33_PPB_DisplayColorProfile_Private_IsDisplayColorProfile(P P_Resource resource) { 2609 static PP_Bool Pnacl_M33_PPB_DisplayColorProfile_Private_IsDisplayColorProfile(P P_Resource resource) {
2600 const struct PPB_DisplayColorProfile_Private_0_1 *iface = Pnacl_WrapperInfo_PP B_DisplayColorProfile_Private_0_1.real_iface; 2610 const struct PPB_DisplayColorProfile_Private_0_1 *iface = Pnacl_WrapperInfo_PP B_DisplayColorProfile_Private_0_1.real_iface;
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
4172 return iface->Initialize(resource, bytes, length); 4182 return iface->Initialize(resource, bytes, length);
4173 } 4183 }
4174 4184
4175 static void Pnacl_M19_PPB_X509Certificate_Private_GetField(struct PP_Var* _struc t_result, PP_Resource resource, PP_X509Certificate_Private_Field field) { 4185 static void Pnacl_M19_PPB_X509Certificate_Private_GetField(struct PP_Var* _struc t_result, PP_Resource resource, PP_X509Certificate_Private_Field field) {
4176 const struct PPB_X509Certificate_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_X5 09Certificate_Private_0_1.real_iface; 4186 const struct PPB_X509Certificate_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_X5 09Certificate_Private_0_1.real_iface;
4177 *_struct_result = iface->GetField(resource, field); 4187 *_struct_result = iface->GetField(resource, field);
4178 } 4188 }
4179 4189
4180 /* End wrapper methods for PPB_X509Certificate_Private_0_1 */ 4190 /* End wrapper methods for PPB_X509Certificate_Private_0_1 */
4181 4191
4182 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_11 */ 4192 /* Begin wrapper methods for PPP_ContentDecryptor_Private_0_12 */
4183 4193
4184 static void Pnacl_M34_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) { 4194 static void Pnacl_M36_PPP_ContentDecryptor_Private_Initialize(PP_Instance instan ce, struct PP_Var key_system) {
4185 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4195 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4186 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) = 4196 void (*temp_fp)(PP_Instance instance, struct PP_Var* key_system) =
4187 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e); 4197 ((void (*)(PP_Instance instance, struct PP_Var* key_system))iface->Initializ e);
4188 temp_fp(instance, &key_system); 4198 temp_fp(instance, &key_system);
4189 } 4199 }
4190 4200
4191 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) { 4201 static void Pnacl_M36_PPP_ContentDecryptor_Private_CreateSession(PP_Instance ins tance, uint32_t promise_id, struct PP_Var init_data_type, struct PP_Var init_dat a, PP_SessionType session_type) {
4192 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4202 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4193 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* cont ent_type, struct PP_Var* init_data) = 4203 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* init _data_type, struct PP_Var* init_data, PP_SessionType session_type) =
4194 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* content _type, struct PP_Var* init_data))iface->CreateSession); 4204 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* init_da ta_type, struct PP_Var* init_data, PP_SessionType session_type))iface->CreateSes sion);
4195 temp_fp(instance, session_id, &content_type, &init_data); 4205 temp_fp(instance, promise_id, &init_data_type, &init_data, session_type);
4196 } 4206 }
4197 4207
4198 static void Pnacl_M34_PPP_ContentDecryptor_Private_LoadSession(PP_Instance insta nce, uint32_t session_id, struct PP_Var web_session_id) { 4208 static void Pnacl_M36_PPP_ContentDecryptor_Private_LoadSession(PP_Instance insta nce, uint32_t promise_id, struct PP_Var web_session_id) {
4199 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4209 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4200 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* web_ session_id) = 4210 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* web_ session_id) =
4201 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* web_ses sion_id))iface->LoadSession); 4211 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* web_ses sion_id))iface->LoadSession);
4202 temp_fp(instance, session_id, &web_session_id); 4212 temp_fp(instance, promise_id, &web_session_id);
4203 } 4213 }
4204 4214
4205 static void Pnacl_M34_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t session_id, struct PP_Var response) { 4215 static void Pnacl_M36_PPP_ContentDecryptor_Private_UpdateSession(PP_Instance ins tance, uint32_t promise_id, struct PP_Var web_session_id, struct PP_Var response ) {
4206 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4216 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4207 void (*temp_fp)(PP_Instance instance, uint32_t session_id, struct PP_Var* resp onse) = 4217 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* web_ session_id, struct PP_Var* response) =
4208 ((void (*)(PP_Instance instance, uint32_t session_id, struct PP_Var* respons e))iface->UpdateSession); 4218 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* web_ses sion_id, struct PP_Var* response))iface->UpdateSession);
4209 temp_fp(instance, session_id, &response); 4219 temp_fp(instance, promise_id, &web_session_id, &response);
4210 } 4220 }
4211 4221
4212 static void Pnacl_M34_PPP_ContentDecryptor_Private_ReleaseSession(PP_Instance in stance, uint32_t session_id) { 4222 static void Pnacl_M36_PPP_ContentDecryptor_Private_ReleaseSession(PP_Instance in stance, uint32_t promise_id, struct PP_Var web_session_id) {
4213 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4223 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4214 void (*temp_fp)(PP_Instance instance, uint32_t session_id) = 4224 void (*temp_fp)(PP_Instance instance, uint32_t promise_id, struct PP_Var* web_ session_id) =
4215 ((void (*)(PP_Instance instance, uint32_t session_id))iface->ReleaseSession) ; 4225 ((void (*)(PP_Instance instance, uint32_t promise_id, struct PP_Var* web_ses sion_id))iface->ReleaseSession);
4216 temp_fp(instance, session_id); 4226 temp_fp(instance, promise_id, &web_session_id);
4217 } 4227 }
4218 4228
4219 static void Pnacl_M34_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) { 4229 static void Pnacl_M36_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_bloc k_info) {
4220 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4230 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4221 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) = 4231 void (*temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struc t PP_EncryptedBlockInfo* encrypted_block_info) =
4222 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt); 4232 ((void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct P P_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt);
4223 temp_fp(instance, encrypted_block, encrypted_block_info); 4233 temp_fp(instance, encrypted_block, encrypted_block_info);
4224 } 4234 }
4225 4235
4226 static void Pnacl_M34_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 4236 static void Pnacl_M36_PPP_ContentDecryptor_Private_InitializeAudioDecoder(PP_Ins tance instance, const struct PP_AudioDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
4227 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4237 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4228 void (*temp_fp)(PP_Instance instance, const struct PP_AudioDecoderConfig* deco der_config, PP_Resource codec_extra_data) = 4238 void (*temp_fp)(PP_Instance instance, const struct PP_AudioDecoderConfig* deco der_config, PP_Resource codec_extra_data) =
4229 ((void (*)(PP_Instance instance, const struct PP_AudioDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeAudioDecoder); 4239 ((void (*)(PP_Instance instance, const struct PP_AudioDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeAudioDecoder);
4230 temp_fp(instance, decoder_config, codec_extra_data); 4240 temp_fp(instance, decoder_config, codec_extra_data);
4231 } 4241 }
4232 4242
4233 static void Pnacl_M34_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Ins tance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) { 4243 static void Pnacl_M36_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Ins tance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) {
4234 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4244 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4235 void (*temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* deco der_config, PP_Resource codec_extra_data) = 4245 void (*temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* deco der_config, PP_Resource codec_extra_data) =
4236 ((void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder); 4246 ((void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder _config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder);
4237 temp_fp(instance, decoder_config, codec_extra_data); 4247 temp_fp(instance, decoder_config, codec_extra_data);
4238 } 4248 }
4239 4249
4240 static void Pnacl_M34_PPP_ContentDecryptor_Private_DeinitializeDecoder(PP_Instan ce instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 4250 static void Pnacl_M36_PPP_ContentDecryptor_Private_DeinitializeDecoder(PP_Instan ce instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
4241 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4251 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4242 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) = 4252 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) =
4243 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->DeinitializeDecoder); 4253 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->DeinitializeDecoder);
4244 temp_fp(instance, decoder_type, request_id); 4254 temp_fp(instance, decoder_type, request_id);
4245 } 4255 }
4246 4256
4247 static void Pnacl_M34_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 4257 static void Pnacl_M36_PPP_ContentDecryptor_Private_ResetDecoder(PP_Instance inst ance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
4248 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4258 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4249 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) = 4259 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uin t32_t request_id) =
4250 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->ResetDecoder); 4260 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32 _t request_id))iface->ResetDecoder);
4251 temp_fp(instance, decoder_type, request_id); 4261 temp_fp(instance, decoder_type, request_id);
4252 } 4262 }
4253 4263
4254 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) { 4264 static void Pnacl_M36_PPP_ContentDecryptor_Private_DecryptAndDecode(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Resource encrypted_buffer, con st struct PP_EncryptedBlockInfo* encrypted_block_info) {
4255 const struct PPP_ContentDecryptor_Private_0_11 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_11.real_iface; 4265 const struct PPP_ContentDecryptor_Private_0_12 *iface = Pnacl_WrapperInfo_PPP_ ContentDecryptor_Private_0_12.real_iface;
4256 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_ Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_i nfo) = 4266 void (*temp_fp)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_ Resource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_i nfo) =
4257 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Res ource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info ))iface->DecryptAndDecode); 4267 ((void (*)(PP_Instance instance, PP_DecryptorStreamType decoder_type, PP_Res ource encrypted_buffer, const struct PP_EncryptedBlockInfo* encrypted_block_info ))iface->DecryptAndDecode);
4258 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info); 4268 temp_fp(instance, decoder_type, encrypted_buffer, encrypted_block_info);
4259 } 4269 }
4260 4270
4261 /* End wrapper methods for PPP_ContentDecryptor_Private_0_11 */ 4271 /* End wrapper methods for PPP_ContentDecryptor_Private_0_12 */
4262 4272
4263 /* Not generating wrapper methods for PPP_Find_Private_0_3 */ 4273 /* Not generating wrapper methods for PPP_Find_Private_0_3 */
4264 4274
4265 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ 4275 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */
4266 4276
4267 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */ 4277 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */
4268 4278
4269 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */ 4279 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */
4270 4280
4271 /* Begin wrapper methods for PPP_Instance_Private_0_1 */ 4281 /* Begin wrapper methods for PPP_Instance_Private_0_1 */
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
4952 /* Not generating wrapper interface for PPP_TextInput_Dev_0_1 */ 4962 /* Not generating wrapper interface for PPP_TextInput_Dev_0_1 */
4953 4963
4954 /* Not generating wrapper interface for PPP_VideoCapture_Dev_0_1 */ 4964 /* Not generating wrapper interface for PPP_VideoCapture_Dev_0_1 */
4955 4965
4956 /* Not generating wrapper interface for PPP_VideoDecoder_Dev_0_11 */ 4966 /* Not generating wrapper interface for PPP_VideoDecoder_Dev_0_11 */
4957 4967
4958 /* Not generating wrapper interface for PPP_Widget_Dev_0_2 */ 4968 /* Not generating wrapper interface for PPP_Widget_Dev_0_2 */
4959 4969
4960 /* Not generating wrapper interface for PPP_Zoom_Dev_0_3 */ 4970 /* Not generating wrapper interface for PPP_Zoom_Dev_0_3 */
4961 4971
4962 static const struct PPB_ContentDecryptor_Private_0_11 Pnacl_Wrappers_PPB_Content Decryptor_Private_0_11 = { 4972 static const struct PPB_ContentDecryptor_Private_0_12 Pnacl_Wrappers_PPB_Content Decryptor_Private_0_12 = {
4963 .SessionCreated = (void (*)(PP_Instance instance, uint32_t session_id, struc t PP_Var web_session_id))&Pnacl_M35_PPB_ContentDecryptor_Private_SessionCreated, 4973 .PromiseResolved = (void (*)(PP_Instance instance, uint32_t promise_id))&Pna cl_M36_PPB_ContentDecryptor_Private_PromiseResolved,
4964 .SessionMessage = (void (*)(PP_Instance instance, uint32_t session_id, struc t PP_Var message, struct PP_Var destination_url))&Pnacl_M35_PPB_ContentDecryptor _Private_SessionMessage, 4974 .PromiseResolvedWithSession = (void (*)(PP_Instance instance, uint32_t promi se_id, struct PP_Var web_session_id))&Pnacl_M36_PPB_ContentDecryptor_Private_Pro miseResolvedWithSession,
4965 .SessionReady = (void (*)(PP_Instance instance, uint32_t session_id))&Pnacl_ M35_PPB_ContentDecryptor_Private_SessionReady, 4975 .PromiseRejected = (void (*)(PP_Instance instance, uint32_t promise_id, PP_E xceptionCodeType exception_code, uint32_t system_code, struct PP_Var error_descr iption))&Pnacl_M36_PPB_ContentDecryptor_Private_PromiseRejected,
4966 .SessionClosed = (void (*)(PP_Instance instance, uint32_t session_id))&Pnacl _M35_PPB_ContentDecryptor_Private_SessionClosed, 4976 .SessionMessage = (void (*)(PP_Instance instance, struct PP_Var web_session_ id, struct PP_Var message, struct PP_Var destination_url))&Pnacl_M36_PPB_Content Decryptor_Private_SessionMessage,
4967 .SessionError = (void (*)(PP_Instance instance, uint32_t session_id, int32_t media_error, uint32_t system_code))&Pnacl_M35_PPB_ContentDecryptor_Private_Sess ionError, 4977 .SessionReady = (void (*)(PP_Instance instance, struct PP_Var web_session_id ))&Pnacl_M36_PPB_ContentDecryptor_Private_SessionReady,
4968 .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M35_PPB_Conten tDecryptor_Private_DeliverBlock, 4978 .SessionClosed = (void (*)(PP_Instance instance, struct PP_Var web_session_i d))&Pnacl_M36_PPB_ContentDecryptor_Private_SessionClosed,
4969 .DecoderInitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStreamT ype decoder_type, uint32_t request_id, PP_Bool success))&Pnacl_M35_PPB_ContentDe cryptor_Private_DecoderInitializeDone, 4979 .SessionError = (void (*)(PP_Instance instance, struct PP_Var web_session_id , PP_ExceptionCodeType exception_code, uint32_t system_code, struct PP_Var error _description))&Pnacl_M36_PPB_ContentDecryptor_Private_SessionError,
4970 .DecoderDeinitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStrea mType decoder_type, uint32_t request_id))&Pnacl_M35_PPB_ContentDecryptor_Private _DecoderDeinitializeDone, 4980 .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M36_PPB_Conten tDecryptor_Private_DeliverBlock,
4971 .DecoderResetDone = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, uint32_t request_id))&Pnacl_M35_PPB_ContentDecryptor_Private_Decode rResetDone, 4981 .DecoderInitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStreamT ype decoder_type, uint32_t request_id, PP_Bool success))&Pnacl_M36_PPB_ContentDe cryptor_Private_DecoderInitializeDone,
4972 .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M35_PPB_Conten tDecryptor_Private_DeliverFrame, 4982 .DecoderDeinitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStrea mType decoder_type, uint32_t request_id))&Pnacl_M36_PPB_ContentDecryptor_Private _DecoderDeinitializeDone,
4973 .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted_sample_info))&Pnacl_M35_PPB_Conte ntDecryptor_Private_DeliverSamples 4983 .DecoderResetDone = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, uint32_t request_id))&Pnacl_M36_PPB_ContentDecryptor_Private_Decode rResetDone,
4984 .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M36_PPB_Conten tDecryptor_Private_DeliverFrame,
4985 .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted_sample_info))&Pnacl_M36_PPB_Conte ntDecryptor_Private_DeliverSamples
4974 }; 4986 };
4975 4987
4976 static const struct PPB_DisplayColorProfile_Private_0_1 Pnacl_Wrappers_PPB_Displ ayColorProfile_Private_0_1 = { 4988 static const struct PPB_DisplayColorProfile_Private_0_1 Pnacl_Wrappers_PPB_Displ ayColorProfile_Private_0_1 = {
4977 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M33_PPB_DisplayColor Profile_Private_Create, 4989 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M33_PPB_DisplayColor Profile_Private_Create,
4978 .IsDisplayColorProfile = (PP_Bool (*)(PP_Resource resource))&Pnacl_M33_PPB_D isplayColorProfile_Private_IsDisplayColorProfile, 4990 .IsDisplayColorProfile = (PP_Bool (*)(PP_Resource resource))&Pnacl_M33_PPB_D isplayColorProfile_Private_IsDisplayColorProfile,
4979 .GetColorProfile = (int32_t (*)(PP_Resource display_color_profile_res, struc t PP_ArrayOutput color_profile, struct PP_CompletionCallback callback))&Pnacl_M3 3_PPB_DisplayColorProfile_Private_GetColorProfile, 4991 .GetColorProfile = (int32_t (*)(PP_Resource display_color_profile_res, struc t PP_ArrayOutput color_profile, struct PP_CompletionCallback callback))&Pnacl_M3 3_PPB_DisplayColorProfile_Private_GetColorProfile,
4980 .RegisterColorProfileChangeCallback = (int32_t (*)(PP_Resource display_color _profile_res, struct PP_CompletionCallback callback))&Pnacl_M33_PPB_DisplayColor Profile_Private_RegisterColorProfileChangeCallback 4992 .RegisterColorProfileChangeCallback = (int32_t (*)(PP_Resource display_color _profile_res, struct PP_CompletionCallback callback))&Pnacl_M33_PPB_DisplayColor Profile_Private_RegisterColorProfileChangeCallback
4981 }; 4993 };
4982 4994
4983 static const struct PPB_Ext_CrxFileSystem_Private_0_1 Pnacl_Wrappers_PPB_Ext_Crx FileSystem_Private_0_1 = { 4995 static const struct PPB_Ext_CrxFileSystem_Private_0_1 Pnacl_Wrappers_PPB_Ext_Crx FileSystem_Private_0_1 = {
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
5381 .Close = (void (*)(PP_Resource source))&Pnacl_M28_PPB_VideoSource_Private_Cl ose 5393 .Close = (void (*)(PP_Resource source))&Pnacl_M28_PPB_VideoSource_Private_Cl ose
5382 }; 5394 };
5383 5395
5384 static const struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certi ficate_Private_0_1 = { 5396 static const struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certi ficate_Private_0_1 = {
5385 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_X509Certific ate_Private_Create, 5397 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_X509Certific ate_Private_Create,
5386 .IsX509CertificatePrivate = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PP B_X509Certificate_Private_IsX509CertificatePrivate, 5398 .IsX509CertificatePrivate = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PP B_X509Certificate_Private_IsX509CertificatePrivate,
5387 .Initialize = (PP_Bool (*)(PP_Resource resource, const char* bytes, uint32_t length))&Pnacl_M19_PPB_X509Certificate_Private_Initialize, 5399 .Initialize = (PP_Bool (*)(PP_Resource resource, const char* bytes, uint32_t length))&Pnacl_M19_PPB_X509Certificate_Private_Initialize,
5388 .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Priv ate_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField 5400 .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Priv ate_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField
5389 }; 5401 };
5390 5402
5391 static const struct PPP_ContentDecryptor_Private_0_11 Pnacl_Wrappers_PPP_Content Decryptor_Private_0_11 = { 5403 static const struct PPP_ContentDecryptor_Private_0_12 Pnacl_Wrappers_PPP_Content Decryptor_Private_0_12 = {
5392 .Initialize = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize, 5404 .Initialize = &Pnacl_M36_PPP_ContentDecryptor_Private_Initialize,
5393 .CreateSession = &Pnacl_M34_PPP_ContentDecryptor_Private_CreateSession, 5405 .CreateSession = &Pnacl_M36_PPP_ContentDecryptor_Private_CreateSession,
5394 .LoadSession = &Pnacl_M34_PPP_ContentDecryptor_Private_LoadSession, 5406 .LoadSession = &Pnacl_M36_PPP_ContentDecryptor_Private_LoadSession,
5395 .UpdateSession = &Pnacl_M34_PPP_ContentDecryptor_Private_UpdateSession, 5407 .UpdateSession = &Pnacl_M36_PPP_ContentDecryptor_Private_UpdateSession,
5396 .ReleaseSession = &Pnacl_M34_PPP_ContentDecryptor_Private_ReleaseSession, 5408 .ReleaseSession = &Pnacl_M36_PPP_ContentDecryptor_Private_ReleaseSession,
5397 .Decrypt = &Pnacl_M34_PPP_ContentDecryptor_Private_Decrypt, 5409 .Decrypt = &Pnacl_M36_PPP_ContentDecryptor_Private_Decrypt,
5398 .InitializeAudioDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize AudioDecoder, 5410 .InitializeAudioDecoder = &Pnacl_M36_PPP_ContentDecryptor_Private_Initialize AudioDecoder,
5399 .InitializeVideoDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_Initialize VideoDecoder, 5411 .InitializeVideoDecoder = &Pnacl_M36_PPP_ContentDecryptor_Private_Initialize VideoDecoder,
5400 .DeinitializeDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_DeinitializeD ecoder, 5412 .DeinitializeDecoder = &Pnacl_M36_PPP_ContentDecryptor_Private_DeinitializeD ecoder,
5401 .ResetDecoder = &Pnacl_M34_PPP_ContentDecryptor_Private_ResetDecoder, 5413 .ResetDecoder = &Pnacl_M36_PPP_ContentDecryptor_Private_ResetDecoder,
5402 .DecryptAndDecode = &Pnacl_M34_PPP_ContentDecryptor_Private_DecryptAndDecode 5414 .DecryptAndDecode = &Pnacl_M36_PPP_ContentDecryptor_Private_DecryptAndDecode
5403 }; 5415 };
5404 5416
5405 /* Not generating wrapper interface for PPP_Find_Private_0_3 */ 5417 /* Not generating wrapper interface for PPP_Find_Private_0_3 */
5406 5418
5407 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */ 5419 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */
5408 5420
5409 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ 5421 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */
5410 5422
5411 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ 5423 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */
5412 5424
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
5779 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 5791 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
5780 .real_iface = NULL 5792 .real_iface = NULL
5781 }; 5793 };
5782 5794
5783 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3 = { 5795 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3 = {
5784 .iface_macro = PPP_SELECTION_DEV_INTERFACE_0_3, 5796 .iface_macro = PPP_SELECTION_DEV_INTERFACE_0_3,
5785 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Selection_Dev_0_3, 5797 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Selection_Dev_0_3,
5786 .real_iface = NULL 5798 .real_iface = NULL
5787 }; 5799 };
5788 5800
5789 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_11 = { 5801 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_12 = {
5790 .iface_macro = PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_11, 5802 .iface_macro = PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_12,
5791 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_ContentDecryptor_Private_0 _11, 5803 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_ContentDecryptor_Private_0 _12,
5792 .real_iface = NULL 5804 .real_iface = NULL
5793 }; 5805 };
5794 5806
5795 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DisplayColorProfile_Priva te_0_1 = { 5807 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DisplayColorProfile_Priva te_0_1 = {
5796 .iface_macro = PPB_DISPLAYCOLORPROFILE_PRIVATE_INTERFACE_0_1, 5808 .iface_macro = PPB_DISPLAYCOLORPROFILE_PRIVATE_INTERFACE_0_1,
5797 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_DisplayColorProfile_Privat e_0_1, 5809 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_DisplayColorProfile_Privat e_0_1,
5798 .real_iface = NULL 5810 .real_iface = NULL
5799 }; 5811 };
5800 5812
5801 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1 = { 5813 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1 = {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
6019 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoSource_Private_0_1, 6031 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoSource_Private_0_1,
6020 .real_iface = NULL 6032 .real_iface = NULL
6021 }; 6033 };
6022 6034
6023 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1 = { 6035 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1 = {
6024 .iface_macro = PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1, 6036 .iface_macro = PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1,
6025 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_X509Certificate_Private_0_ 1, 6037 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_X509Certificate_Private_0_ 1,
6026 .real_iface = NULL 6038 .real_iface = NULL
6027 }; 6039 };
6028 6040
6029 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_11 = { 6041 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_12 = {
6030 .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_11, 6042 .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_12,
6031 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0 _11, 6043 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0 _12,
6032 .real_iface = NULL 6044 .real_iface = NULL
6033 }; 6045 };
6034 6046
6035 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = { 6047 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = {
6036 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1, 6048 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1,
6037 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1, 6049 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1,
6038 .real_iface = NULL 6050 .real_iface = NULL
6039 }; 6051 };
6040 6052
6041 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 6053 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
6092 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 6104 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
6093 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 6105 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
6094 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 6106 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
6095 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 6107 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
6096 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 6108 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
6097 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1, 6109 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1,
6098 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 6110 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
6099 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7, 6111 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7,
6100 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3, 6112 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3,
6101 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 6113 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
6102 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_11, 6114 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_12,
6103 &Pnacl_WrapperInfo_PPB_DisplayColorProfile_Private_0_1, 6115 &Pnacl_WrapperInfo_PPB_DisplayColorProfile_Private_0_1,
6104 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1, 6116 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1,
6105 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1, 6117 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1,
6106 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 6118 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
6107 &Pnacl_WrapperInfo_PPB_Flash_12_4, 6119 &Pnacl_WrapperInfo_PPB_Flash_12_4,
6108 &Pnacl_WrapperInfo_PPB_Flash_12_5, 6120 &Pnacl_WrapperInfo_PPB_Flash_12_5,
6109 &Pnacl_WrapperInfo_PPB_Flash_12_6, 6121 &Pnacl_WrapperInfo_PPB_Flash_12_6,
6110 &Pnacl_WrapperInfo_PPB_Flash_13_0, 6122 &Pnacl_WrapperInfo_PPB_Flash_13_0,
6111 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0, 6123 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0,
6112 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0, 6124 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0,
(...skipping 25 matching lines...) Expand all
6138 &Pnacl_WrapperInfo_PPB_UMA_Private_0_3, 6150 &Pnacl_WrapperInfo_PPB_UMA_Private_0_3,
6139 &Pnacl_WrapperInfo_PPB_VideoDestination_Private_0_1, 6151 &Pnacl_WrapperInfo_PPB_VideoDestination_Private_0_1,
6140 &Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1, 6152 &Pnacl_WrapperInfo_PPB_VideoSource_Private_0_1,
6141 &Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1, 6153 &Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1,
6142 NULL 6154 NULL
6143 }; 6155 };
6144 6156
6145 static struct __PnaclWrapperInfo *s_ppp_wrappers[] = { 6157 static struct __PnaclWrapperInfo *s_ppp_wrappers[] = {
6146 &Pnacl_WrapperInfo_PPP_Messaging_1_0, 6158 &Pnacl_WrapperInfo_PPP_Messaging_1_0,
6147 &Pnacl_WrapperInfo_PPP_Selection_Dev_0_3, 6159 &Pnacl_WrapperInfo_PPP_Selection_Dev_0_3,
6148 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_11, 6160 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_12,
6149 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1, 6161 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1,
6150 NULL 6162 NULL
6151 }; 6163 };
6152 6164
6153 6165
6154 6166
6155 static PPB_GetInterface __real_PPBGetInterface; 6167 static PPB_GetInterface __real_PPBGetInterface;
6156 static PPP_GetInterface_Type __real_PPPGetInterface; 6168 static PPP_GetInterface_Type __real_PPPGetInterface;
6157 6169
6158 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { 6170 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
6211 6223
6212 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6224 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6213 if (wrapper->real_iface == NULL) { 6225 if (wrapper->real_iface == NULL) {
6214 const void *iface = (*__real_PPPGetInterface)(name); 6226 const void *iface = (*__real_PPPGetInterface)(name);
6215 if (NULL == iface) return NULL; 6227 if (NULL == iface) return NULL;
6216 wrapper->real_iface = iface; 6228 wrapper->real_iface = iface;
6217 } 6229 }
6218 6230
6219 return wrapper->wrapped_iface; 6231 return wrapper->wrapped_iface;
6220 } 6232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698