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

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
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: Mon Oct 1 14:26:12 2012. */ 6 /* Last generated from IDL: Tue Oct 2 13:42:52 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include "ppapi/c/private/ppb_net_address_private.h" 80 #include "ppapi/c/private/ppb_net_address_private.h"
81 #include "ppapi/c/private/ppb_network_list_private.h" 81 #include "ppapi/c/private/ppb_network_list_private.h"
82 #include "ppapi/c/private/ppb_network_monitor_private.h" 82 #include "ppapi/c/private/ppb_network_monitor_private.h"
83 #include "ppapi/c/private/ppb_talk_private.h" 83 #include "ppapi/c/private/ppb_talk_private.h"
84 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" 84 #include "ppapi/c/private/ppb_tcp_server_socket_private.h"
85 #include "ppapi/c/private/ppb_tcp_socket_private.h" 85 #include "ppapi/c/private/ppb_tcp_socket_private.h"
86 #include "ppapi/c/private/ppb_udp_socket_private.h" 86 #include "ppapi/c/private/ppb_udp_socket_private.h"
87 #include "ppapi/c/private/ppb_x509_certificate_private.h" 87 #include "ppapi/c/private/ppb_x509_certificate_private.h"
88 #include "ppapi/c/private/ppp_content_decryptor_private.h" 88 #include "ppapi/c/private/ppp_content_decryptor_private.h"
89 #include "ppapi/c/private/ppp_flash_browser_operations.h" 89 #include "ppapi/c/private/ppp_flash_browser_operations.h"
90 #include "ppapi/c/private/ppp_instance_private.h"
90 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" 91 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h"
91 #include "ppapi/c/trusted/ppb_audio_trusted.h" 92 #include "ppapi/c/trusted/ppb_audio_trusted.h"
92 #include "ppapi/c/trusted/ppb_broker_trusted.h" 93 #include "ppapi/c/trusted/ppb_broker_trusted.h"
93 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 94 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
94 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 95 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
95 #include "ppapi/c/trusted/ppb_char_set_trusted.h" 96 #include "ppapi/c/trusted/ppb_char_set_trusted.h"
96 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 97 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
97 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 98 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
98 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 99 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
99 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 100 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3; 230 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3;
230 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4; 231 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4;
231 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2; 232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2;
232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; 233 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3;
233 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4; 234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4;
234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1; 235 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 _1;
235 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_1; 236 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_1;
236 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _0; 237 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _0;
237 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _2; 238 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _2;
238 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3; 239 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3;
240 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1;
239 /* END Declarations for all Wrapper Infos. */ 241 /* END Declarations for all Wrapper Infos. */
240 242
241 /* Not generating wrapper methods for PPB_Audio_1_0 */ 243 /* Not generating wrapper methods for PPB_Audio_1_0 */
242 244
243 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 245 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
244 246
245 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */ 247 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */
246 248
247 /* Begin wrapper methods for PPB_Core_1_0 */ 249 /* Begin wrapper methods for PPB_Core_1_0 */
248 250
(...skipping 3090 matching lines...) Expand 10 before | Expand all | Expand 10 after
3339 } 3341 }
3340 3342
3341 /* End wrapper methods for PPP_ContentDecryptor_Private_0_1 */ 3343 /* End wrapper methods for PPP_ContentDecryptor_Private_0_1 */
3342 3344
3343 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ 3345 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */
3344 3346
3345 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */ 3347 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_2 */
3346 3348
3347 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */ 3349 /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_3 */
3348 3350
3351 /* Begin wrapper methods for PPP_Instance_Private_0_1 */
3352
3353 static struct PP_Var Pnacl_M22_PPP_Instance_Private_GetInstanceObject(PP_Instanc e instance) {
3354 const struct PPP_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPP_Instance_ Private_0_1.real_iface;
3355 struct PP_Var (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance) = (( struct PP_Var (__attribute__((pnaclcall)) *)(PP_Instance instance))iface->GetIns tanceObject);
3356 return temp_fp(instance);
3357 }
3358
3359 /* End wrapper methods for PPP_Instance_Private_0_1 */
3360
3349 /* Not generating wrapper interface for PPB_Audio_1_0 */ 3361 /* Not generating wrapper interface for PPB_Audio_1_0 */
3350 3362
3351 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */ 3363 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */
3352 3364
3353 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */ 3365 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */
3354 3366
3355 struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = { 3367 struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = {
3356 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource, 3368 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource,
3357 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource, 3369 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource,
3358 .GetTime = (PP_Time (*)())&Pnacl_M14_PPB_Core_GetTime, 3370 .GetTime = (PP_Time (*)())&Pnacl_M14_PPB_Core_GetTime,
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
4115 .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, cons t struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_ContentDecr yptor_Private_Decrypt, 4127 .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, cons t struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_ContentDecr yptor_Private_Decrypt,
4116 .DecryptAndDecode = (void (*)(PP_Instance instance, PP_Resource encrypted_bl ock, const struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_Co ntentDecryptor_Private_DecryptAndDecode 4128 .DecryptAndDecode = (void (*)(PP_Instance instance, PP_Resource encrypted_bl ock, const struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_Co ntentDecryptor_Private_DecryptAndDecode
4117 }; 4129 };
4118 4130
4119 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */ 4131 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_0 */
4120 4132
4121 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ 4133 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */
4122 4134
4123 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ 4135 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */
4124 4136
4137 struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private_0_1 = {
4138 .GetInstanceObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M22_PPP _Instance_Private_GetInstanceObject
4139 };
4140
4125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0 = { 4141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0 = {
4126 .iface_macro = PPB_AUDIO_INTERFACE_1_0, 4142 .iface_macro = PPB_AUDIO_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
4129 }; 4145 };
4130 4146
4131 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0 = { 4147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0 = {
4132 .iface_macro = PPB_AUDIO_CONFIG_INTERFACE_1_0, 4148 .iface_macro = PPB_AUDIO_CONFIG_INTERFACE_1_0,
4133 .wrapped_iface = NULL /* Still need slot for real_iface */, 4149 .wrapped_iface = NULL /* Still need slot for real_iface */,
4134 .real_iface = NULL 4150 .real_iface = NULL
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
4871 .wrapped_iface = NULL /* Still need slot for real_iface */, 4887 .wrapped_iface = NULL /* Still need slot for real_iface */,
4872 .real_iface = NULL 4888 .real_iface = NULL
4873 }; 4889 };
4874 4890
4875 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3 = { 4891 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1 _3 = {
4876 .iface_macro = PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_3, 4892 .iface_macro = PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_3,
4877 .wrapped_iface = NULL /* Still need slot for real_iface */, 4893 .wrapped_iface = NULL /* Still need slot for real_iface */,
4878 .real_iface = NULL 4894 .real_iface = NULL
4879 }; 4895 };
4880 4896
4897 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = {
4898 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1,
4899 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1,
4900 .real_iface = NULL
4901 };
4902
4881 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 4903 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
4882 &Pnacl_WrapperInfo_PPB_Audio_1_0, 4904 &Pnacl_WrapperInfo_PPB_Audio_1_0,
4883 &Pnacl_WrapperInfo_PPB_AudioConfig_1_0, 4905 &Pnacl_WrapperInfo_PPB_AudioConfig_1_0,
4884 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1, 4906 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1,
4885 &Pnacl_WrapperInfo_PPB_Core_1_0, 4907 &Pnacl_WrapperInfo_PPB_Core_1_0,
4886 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 4908 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
4887 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 4909 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
4888 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 4910 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
4889 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0, 4911 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0,
4890 &Pnacl_WrapperInfo_PPB_Gamepad_1_0, 4912 &Pnacl_WrapperInfo_PPB_Gamepad_1_0,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
5002 &Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1, 5024 &Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1,
5003 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_9, 5025 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_9,
5004 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_10, 5026 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_10,
5005 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_11, 5027 &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_11,
5006 &Pnacl_WrapperInfo_PPP_Widget_Dev_0_2, 5028 &Pnacl_WrapperInfo_PPP_Widget_Dev_0_2,
5007 &Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3, 5029 &Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3,
5008 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_1, 5030 &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_1,
5009 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_0, 5031 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_0,
5010 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_2, 5032 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_2,
5011 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_3, 5033 &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_3,
5034 &Pnacl_WrapperInfo_PPP_Instance_Private_0_1,
5012 NULL 5035 NULL
5013 }; 5036 };
5014 5037
5015 5038
5016 5039
5017 static PPB_GetInterface __real_PPBGetInterface; 5040 static PPB_GetInterface __real_PPBGetInterface;
5018 static PPP_GetInterface_Type __real_PPPGetInterface; 5041 static PPP_GetInterface_Type __real_PPPGetInterface;
5019 5042
5020 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { 5043 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) {
5021 __real_PPBGetInterface = real; 5044 __real_PPBGetInterface = real;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
5083 } 5106 }
5084 5107
5085 if (wrapper->wrapped_iface) { 5108 if (wrapper->wrapped_iface) {
5086 return wrapper->wrapped_iface; 5109 return wrapper->wrapped_iface;
5087 } else { 5110 } else {
5088 return wrapper->real_iface; 5111 return wrapper->real_iface;
5089 } 5112 }
5090 } 5113 }
5091 5114
5092 #endif 5115 #endif
OLDNEW
« ppapi/c/private/ppp_instance_private.h ('K') | « ppapi/c/private/ppp_instance_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698