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

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

Issue 16819002: PPAPI: Introduce PPB_NetworkProxy_Dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
11 #include "ppapi/c/dev/ppb_buffer_dev.h" 11 #include "ppapi/c/dev/ppb_buffer_dev.h"
12 #include "ppapi/c/dev/ppb_crypto_dev.h" 12 #include "ppapi/c/dev/ppb_crypto_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"
17 #include "ppapi/c/dev/ppb_font_dev.h" 17 #include "ppapi/c/dev/ppb_font_dev.h"
18 #include "ppapi/c/dev/ppb_graphics_2d_dev.h" 18 #include "ppapi/c/dev/ppb_graphics_2d_dev.h"
19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
20 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h" 20 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h"
21 #include "ppapi/c/dev/ppb_memory_dev.h" 21 #include "ppapi/c/dev/ppb_memory_dev.h"
22 #include "ppapi/c/dev/ppb_network_proxy_dev.h"
22 #include "ppapi/c/dev/ppb_printing_dev.h" 23 #include "ppapi/c/dev/ppb_printing_dev.h"
23 #include "ppapi/c/dev/ppb_resource_array_dev.h" 24 #include "ppapi/c/dev/ppb_resource_array_dev.h"
24 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 25 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
25 #include "ppapi/c/dev/ppb_testing_dev.h" 26 #include "ppapi/c/dev/ppb_testing_dev.h"
26 #include "ppapi/c/dev/ppb_text_input_dev.h" 27 #include "ppapi/c/dev/ppb_text_input_dev.h"
27 #include "ppapi/c/dev/ppb_trace_event_dev.h" 28 #include "ppapi/c/dev/ppb_trace_event_dev.h"
28 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 29 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
29 #include "ppapi/c/dev/ppb_url_util_dev.h" 30 #include "ppapi/c/dev/ppb_url_util_dev.h"
30 #include "ppapi/c/dev/ppb_var_array_dev.h" 31 #include "ppapi/c/dev/ppb_var_array_dev.h"
31 #include "ppapi/c/dev/ppb_var_dictionary_dev.h" 32 #include "ppapi/c/dev/ppb_var_dictionary_dev.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_Dev_0_1;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; 203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_92; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_92;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2;
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 const struct PPB_IMEInputEvent_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_IMEInput Event_Dev_0_2.real_iface; 1652 const struct PPB_IMEInputEvent_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_IMEInput Event_Dev_0_2.real_iface;
1651 iface->GetSelection(ime_event, start, end); 1653 iface->GetSelection(ime_event, start, end);
1652 } 1654 }
1653 1655
1654 /* End wrapper methods for PPB_IMEInputEvent_Dev_0_2 */ 1656 /* End wrapper methods for PPB_IMEInputEvent_Dev_0_2 */
1655 1657
1656 /* Not generating wrapper methods for PPB_KeyboardInputEvent_Dev_0_1 */ 1658 /* Not generating wrapper methods for PPB_KeyboardInputEvent_Dev_0_1 */
1657 1659
1658 /* Not generating wrapper methods for PPB_Memory_Dev_0_1 */ 1660 /* Not generating wrapper methods for PPB_Memory_Dev_0_1 */
1659 1661
1662 /* Begin wrapper methods for PPB_NetworkProxy_Dev_0_1 */
1663
1664 static int32_t Pnacl_M29_PPB_NetworkProxy_Dev_GetProxyForURL(PP_Instance instanc e, struct PP_Var* url, struct PP_Var* proxy_string, struct PP_CompletionCallback * callback) {
1665 const struct PPB_NetworkProxy_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_NetworkPr oxy_Dev_0_1.real_iface;
1666 return iface->GetProxyForURL(instance, *url, proxy_string, *callback);
1667 }
1668
1669 /* End wrapper methods for PPB_NetworkProxy_Dev_0_1 */
1670
1660 /* Begin wrapper methods for PPB_Printing_Dev_0_7 */ 1671 /* Begin wrapper methods for PPB_Printing_Dev_0_7 */
1661 1672
1662 static PP_Resource Pnacl_M23_PPB_Printing_Dev_Create(PP_Instance instance) { 1673 static PP_Resource Pnacl_M23_PPB_Printing_Dev_Create(PP_Instance instance) {
1663 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_ 0_7.real_iface; 1674 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_ 0_7.real_iface;
1664 return iface->Create(instance); 1675 return iface->Create(instance);
1665 } 1676 }
1666 1677
1667 static int32_t Pnacl_M23_PPB_Printing_Dev_GetDefaultPrintSettings(PP_Resource re source, struct PP_PrintSettings_Dev* print_settings, struct PP_CompletionCallbac k* callback) { 1678 static int32_t Pnacl_M23_PPB_Printing_Dev_GetDefaultPrintSettings(PP_Resource re source, struct PP_PrintSettings_Dev* print_settings, struct PP_CompletionCallbac k* callback) {
1668 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_ 0_7.real_iface; 1679 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_ 0_7.real_iface;
1669 return iface->GetDefaultPrintSettings(resource, print_settings, *callback); 1680 return iface->GetDefaultPrintSettings(resource, print_settings, *callback);
(...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after
4081 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEI nputEvent_Dev_GetSegmentNumber, 4092 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEI nputEvent_Dev_GetSegmentNumber,
4082 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn acl_M21_PPB_IMEInputEvent_Dev_GetSegmentOffset, 4093 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn acl_M21_PPB_IMEInputEvent_Dev_GetSegmentOffset,
4083 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEIn putEvent_Dev_GetTargetSegment, 4094 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEIn putEvent_Dev_GetTargetSegment,
4084 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t* end))&Pnacl_M21_PPB_IMEInputEvent_Dev_GetSelection 4095 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t* end))&Pnacl_M21_PPB_IMEInputEvent_Dev_GetSelection
4085 }; 4096 };
4086 4097
4087 /* Not generating wrapper interface for PPB_KeyboardInputEvent_Dev_0_1 */ 4098 /* Not generating wrapper interface for PPB_KeyboardInputEvent_Dev_0_1 */
4088 4099
4089 /* Not generating wrapper interface for PPB_Memory_Dev_0_1 */ 4100 /* Not generating wrapper interface for PPB_Memory_Dev_0_1 */
4090 4101
4102 struct PPB_NetworkProxy_Dev_0_1 Pnacl_Wrappers_PPB_NetworkProxy_Dev_0_1 = {
4103 .GetProxyForURL = (int32_t (*)(PP_Instance instance, struct PP_Var url, stru ct PP_Var* proxy_string, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_N etworkProxy_Dev_GetProxyForURL
4104 };
4105
4091 struct PPB_Printing_Dev_0_7 Pnacl_Wrappers_PPB_Printing_Dev_0_7 = { 4106 struct PPB_Printing_Dev_0_7 Pnacl_Wrappers_PPB_Printing_Dev_0_7 = {
4092 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M23_PPB_Printing_Dev _Create, 4107 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M23_PPB_Printing_Dev _Create,
4093 .GetDefaultPrintSettings = (int32_t (*)(PP_Resource resource, struct PP_Prin tSettings_Dev* print_settings, struct PP_CompletionCallback callback))&Pnacl_M23 _PPB_Printing_Dev_GetDefaultPrintSettings 4108 .GetDefaultPrintSettings = (int32_t (*)(PP_Resource resource, struct PP_Prin tSettings_Dev* print_settings, struct PP_CompletionCallback callback))&Pnacl_M23 _PPB_Printing_Dev_GetDefaultPrintSettings
4094 }; 4109 };
4095 4110
4096 /* Not generating wrapper interface for PPB_ResourceArray_Dev_0_1 */ 4111 /* Not generating wrapper interface for PPB_ResourceArray_Dev_0_1 */
4097 4112
4098 /* Not generating wrapper interface for PPB_Scrollbar_Dev_0_5 */ 4113 /* Not generating wrapper interface for PPB_Scrollbar_Dev_0_5 */
4099 4114
4100 /* Not generating wrapper interface for PPB_Testing_Dev_0_7 */ 4115 /* Not generating wrapper interface for PPB_Testing_Dev_0_7 */
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
5034 .wrapped_iface = NULL /* Still need slot for real_iface */, 5049 .wrapped_iface = NULL /* Still need slot for real_iface */,
5035 .real_iface = NULL 5050 .real_iface = NULL
5036 }; 5051 };
5037 5052
5038 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1 = { 5053 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1 = {
5039 .iface_macro = PPB_MEMORY_DEV_INTERFACE_0_1, 5054 .iface_macro = PPB_MEMORY_DEV_INTERFACE_0_1,
5040 .wrapped_iface = NULL /* Still need slot for real_iface */, 5055 .wrapped_iface = NULL /* Still need slot for real_iface */,
5041 .real_iface = NULL 5056 .real_iface = NULL
5042 }; 5057 };
5043 5058
5059 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_Dev_0_1 = {
5060 .iface_macro = PPB_NETWORKPROXY_DEV_INTERFACE_0_1,
5061 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetworkProxy_Dev_0_1,
5062 .real_iface = NULL
5063 };
5064
5044 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7 = { 5065 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7 = {
5045 .iface_macro = PPB_PRINTING_DEV_INTERFACE_0_7, 5066 .iface_macro = PPB_PRINTING_DEV_INTERFACE_0_7,
5046 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Printing_Dev_0_7, 5067 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Printing_Dev_0_7,
5047 .real_iface = NULL 5068 .real_iface = NULL
5048 }; 5069 };
5049 5070
5050 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1 = { 5071 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1 = {
5051 .iface_macro = PPB_RESOURCEARRAY_DEV_INTERFACE_0_1, 5072 .iface_macro = PPB_RESOURCEARRAY_DEV_INTERFACE_0_1,
5052 .wrapped_iface = NULL /* Still need slot for real_iface */, 5073 .wrapped_iface = NULL /* Still need slot for real_iface */,
5053 .real_iface = NULL 5074 .real_iface = NULL
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
5592 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 5613 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
5593 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 5614 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
5594 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5615 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5595 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3, 5616 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3,
5596 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5617 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5597 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1, 5618 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1,
5598 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5619 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5599 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5620 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5600 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1, 5621 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1,
5601 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1, 5622 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1,
5623 &Pnacl_WrapperInfo_PPB_NetworkProxy_Dev_0_1,
5602 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5624 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5603 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, 5625 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1,
5604 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, 5626 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5,
5605 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, 5627 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7,
5606 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, 5628 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8,
5607 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, 5629 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9,
5608 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, 5630 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91,
5609 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_92, 5631 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_92,
5610 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, 5632 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1,
5611 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, 5633 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5764 if (NULL == iface) return NULL; 5786 if (NULL == iface) return NULL;
5765 wrapper->real_iface = iface; 5787 wrapper->real_iface = iface;
5766 } 5788 }
5767 5789
5768 if (wrapper->wrapped_iface) { 5790 if (wrapper->wrapped_iface) {
5769 return wrapper->wrapped_iface; 5791 return wrapper->wrapped_iface;
5770 } else { 5792 } else {
5771 return wrapper->real_iface; 5793 return wrapper->real_iface;
5772 } 5794 }
5773 } 5795 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698