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

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

Issue 11013014: Convert InstancePrivate to IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/c/private/ppp_instance_private.h ('k') | ppapi/proxy/ppp_instance_private_proxy.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: Wed Oct 3 16:17:09 2012. */ 6 /* Last generated from IDL: Thu Oct 4 11:25:54 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #include "ppapi/c/private/ppb_net_address_private.h" 79 #include "ppapi/c/private/ppb_net_address_private.h"
80 #include "ppapi/c/private/ppb_network_list_private.h" 80 #include "ppapi/c/private/ppb_network_list_private.h"
81 #include "ppapi/c/private/ppb_network_monitor_private.h" 81 #include "ppapi/c/private/ppb_network_monitor_private.h"
82 #include "ppapi/c/private/ppb_talk_private.h" 82 #include "ppapi/c/private/ppb_talk_private.h"
83 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" 83 #include "ppapi/c/private/ppb_tcp_server_socket_private.h"
84 #include "ppapi/c/private/ppb_tcp_socket_private.h" 84 #include "ppapi/c/private/ppb_tcp_socket_private.h"
85 #include "ppapi/c/private/ppb_udp_socket_private.h" 85 #include "ppapi/c/private/ppb_udp_socket_private.h"
86 #include "ppapi/c/private/ppb_x509_certificate_private.h" 86 #include "ppapi/c/private/ppb_x509_certificate_private.h"
87 #include "ppapi/c/private/ppp_content_decryptor_private.h" 87 #include "ppapi/c/private/ppp_content_decryptor_private.h"
88 #include "ppapi/c/private/ppp_flash_browser_operations.h" 88 #include "ppapi/c/private/ppp_flash_browser_operations.h"
89 #include "ppapi/c/private/ppp_instance_private.h"
89 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" 90 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h"
90 #include "ppapi/c/trusted/ppb_audio_trusted.h" 91 #include "ppapi/c/trusted/ppb_audio_trusted.h"
91 #include "ppapi/c/trusted/ppb_broker_trusted.h" 92 #include "ppapi/c/trusted/ppb_broker_trusted.h"
92 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 93 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
93 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 94 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
94 #include "ppapi/c/trusted/ppb_char_set_trusted.h" 95 #include "ppapi/c/trusted/ppb_char_set_trusted.h"
95 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 96 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
96 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 97 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
97 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 98 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
98 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 99 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3; 228 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3;
228 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4; 229 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4;
229 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2; 230 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2;
230 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; 231 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3;
231 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4; 232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4;
232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1; 233 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1;
233 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_2; 234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_2;
234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _0; 235 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _0;
235 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _2; 236 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _2;
236 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3; 237 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3;
238 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1;
237 /* END Declarations for all Wrapper Infos. */ 239 /* END Declarations for all Wrapper Infos. */
238 240
239 /* Not generating wrapper methods for PPB_Audio_1_0 */ 241 /* Not generating wrapper methods for PPB_Audio_1_0 */
240 242
241 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 243 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
242 244
243 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */ 245 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */
244 246
245 /* Begin wrapper methods for PPB_Core_1_0 */ 247 /* Begin wrapper methods for PPB_Core_1_0 */
246 248
(...skipping 3088 matching lines...) Expand 10 before | Expand all | Expand 10 after
3335 } 3337 }
3336 3338
3337 /* End wrapper methods for PPP_ContentDecryptor_Private_0_2 */ 3339 /* End wrapper methods for PPP_ContentDecryptor_Private_0_2 */
3338 3340
3339 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ 3341 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */
3340 3342
3341 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */ 3343 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */
3342 3344
3343 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */ 3345 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */
3344 3346
3347 /* Begin wrapper methods for PPP_Instance_Private_0_1 */
3348
3349 static struct PP_Var Pnacl_M18_PPP_Instance_Private_GetInstanceObject(PP_Instanc e instance) {
3350 const struct PPP_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPP_Instance_ Private_0_1.real_iface;
3351 struct PP_Var (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance) = (( struct PP_Var (__attribute__((pnaclcall)) *)(PP_Instance instance))iface->GetIns tanceObject);
3352 return temp_fp(instance);
3353 }
3354
3355 /* End wrapper methods for PPP_Instance_Private_0_1 */
3356
3345 /* Not generating wrapper interface for PPB_Audio_1_0 */ 3357 /* Not generating wrapper interface for PPB_Audio_1_0 */
3346 3358
3347 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */ 3359 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */
3348 3360
3349 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */ 3361 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */
3350 3362
3351 struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = { 3363 struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = {
3352 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource, 3364 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource,
3353 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource, 3365 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource,
3354 .GetTime = (PP_Time (*)())&Pnacl_M14_PPB_Core_GetTime, 3366 .GetTime = (PP_Time (*)())&Pnacl_M14_PPB_Core_GetTime,
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
4109 .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, cons t struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_ContentDecr yptor_Private_Decrypt, 4121 .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, cons t struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_ContentDecr yptor_Private_Decrypt,
4110 .DecryptAndDecodeFrame = (void (*)(PP_Instance instance, PP_Resource encrypt ed_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_i nfo))&Pnacl_M23_PPP_ContentDecryptor_Private_DecryptAndDecodeFrame 4122 .DecryptAndDecodeFrame = (void (*)(PP_Instance instance, PP_Resource encrypt ed_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_i nfo))&Pnacl_M23_PPP_ContentDecryptor_Private_DecryptAndDecodeFrame
4111 }; 4123 };
4112 4124
4113 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */ 4125 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */
4114 4126
4115 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ 4127 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */
4116 4128
4117 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ 4129 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */
4118 4130
4131 struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private_0_1 = {
4132 .GetInstanceObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M18_PPP _Instance_Private_GetInstanceObject
4133 };
4134
4119 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0 = { 4135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0 = {
4120 .iface_macro = PPB_AUDIO_INTERFACE_1_0, 4136 .iface_macro = PPB_AUDIO_INTERFACE_1_0,
4121 .wrapped_iface = NULL /* Still need slot for real_iface */, 4137 .wrapped_iface = NULL /* Still need slot for real_iface */,
4122 .real_iface = NULL 4138 .real_iface = NULL
4123 }; 4139 };
4124 4140
4125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0 = { 4141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0 = {
4126 .iface_macro = PPB_AUDIO_CONFIG_INTERFACE_1_0, 4142 .iface_macro = PPB_AUDIO_CONFIG_INTERFACE_1_0,
4127 .wrapped_iface = NULL /* Still need slot for real_iface */, 4143 .wrapped_iface = NULL /* Still need slot for real_iface */,
4128 .real_iface = NULL 4144 .real_iface = NULL
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
4859 .wrapped_iface = NULL /* Still need slot for real_iface */, 4875 .wrapped_iface = NULL /* Still need slot for real_iface */,
4860 .real_iface = NULL 4876 .real_iface = NULL
4861 }; 4877 };
4862 4878
4863 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3 = { 4879 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3 = {
4864 .iface_macro = PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_3, 4880 .iface_macro = PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_3,
4865 .wrapped_iface = NULL /* Still need slot for real_iface */, 4881 .wrapped_iface = NULL /* Still need slot for real_iface */,
4866 .real_iface = NULL 4882 .real_iface = NULL
4867 }; 4883 };
4868 4884
4885 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = {
4886 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1,
4887 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1,
4888 .real_iface = NULL
4889 };
4890
4869 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 4891 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
4870 &Pnacl_WrapperInfo_PPB_Audio_1_0, 4892 &Pnacl_WrapperInfo_PPB_Audio_1_0,
4871 &Pnacl_WrapperInfo_PPB_AudioConfig_1_0, 4893 &Pnacl_WrapperInfo_PPB_AudioConfig_1_0,
4872 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1, 4894 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1,
4873 &Pnacl_WrapperInfo_PPB_Core_1_0, 4895 &Pnacl_WrapperInfo_PPB_Core_1_0,
4874 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 4896 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
4875 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 4897 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
4876 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 4898 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
4877 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0, 4899 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0,
4878 &Pnacl_WrapperInfo_PPB_Gamepad_1_0, 4900 &Pnacl_WrapperInfo_PPB_Gamepad_1_0,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
4989 &Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1, 5011 &Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1,
4990 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_9, 5012 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_9,
4991 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_10, 5013 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_10,
4992 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_11, 5014 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_11,
4993 &Pnacl_WrapperInfo_PPP_Widget_Dev_0_2, 5015 &Pnacl_WrapperInfo_PPP_Widget_Dev_0_2,
4994 &Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3, 5016 &Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3,
4995 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2, 5017 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2,
4996 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_0, 5018 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_0,
4997 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_2, 5019 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_2,
4998 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_3, 5020 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_3,
5021 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1,
4999 NULL 5022 NULL
5000 }; 5023 };
5001 5024
5002 5025
5003 5026
5004 static PPB_GetInterface __real_PPBGetInterface; 5027 static PPB_GetInterface __real_PPBGetInterface;
5005 static PPP_GetInterface_Type __real_PPPGetInterface; 5028 static PPP_GetInterface_Type __real_PPPGetInterface;
5006 5029
5007 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { 5030 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
5008 __real_PPBGetInterface = real; 5031 __real_PPBGetInterface = real;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
5070 } 5093 }
5071 5094
5072 if (wrapper->wrapped_iface) { 5095 if (wrapper->wrapped_iface) {
5073 return wrapper->wrapped_iface; 5096 return wrapper->wrapped_iface;
5074 } else { 5097 } else {
5075 return wrapper->real_iface; 5098 return wrapper->real_iface;
5076 } 5099 }
5077 } 5100 }
5078 5101
5079 #endif 5102 #endif
OLDNEW
« no previous file with comments | « ppapi/c/private/ppp_instance_private.h ('k') | ppapi/proxy/ppp_instance_private_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698