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

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

Issue 24195004: PPB_TCPSocket: add support for TCP server socket operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/tcp_socket.cc ('k') | ppapi/ppapi_shared.gypi » ('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) 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"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0;
157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0;
158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0; 158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0;
159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; 159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0;
160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; 160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0;
161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1;
161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; 162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0;
162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; 163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0;
163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; 169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0;
169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; 171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0;
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 iface->Close(tcp_socket); 1067 iface->Close(tcp_socket);
1067 } 1068 }
1068 1069
1069 static int32_t Pnacl_M29_PPB_TCPSocket_SetOption(PP_Resource tcp_socket, PP_TCPS ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback) { 1070 static int32_t Pnacl_M29_PPB_TCPSocket_SetOption(PP_Resource tcp_socket, PP_TCPS ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback) {
1070 const struct PPB_TCPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_0.re al_iface; 1071 const struct PPB_TCPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_0.re al_iface;
1071 return iface->SetOption(tcp_socket, name, *value, *callback); 1072 return iface->SetOption(tcp_socket, name, *value, *callback);
1072 } 1073 }
1073 1074
1074 /* End wrapper methods for PPB_TCPSocket_1_0 */ 1075 /* End wrapper methods for PPB_TCPSocket_1_0 */
1075 1076
1077 /* Begin wrapper methods for PPB_TCPSocket_1_1 */
1078
1079 static PP_Resource Pnacl_M31_PPB_TCPSocket_Create(PP_Instance instance) {
1080 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1081 return iface->Create(instance);
1082 }
1083
1084 static PP_Bool Pnacl_M31_PPB_TCPSocket_IsTCPSocket(PP_Resource resource) {
1085 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1086 return iface->IsTCPSocket(resource);
1087 }
1088
1089 static int32_t Pnacl_M31_PPB_TCPSocket_Bind(PP_Resource tcp_socket, PP_Resource addr, struct PP_CompletionCallback* callback) {
1090 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1091 return iface->Bind(tcp_socket, addr, *callback);
1092 }
1093
1094 static int32_t Pnacl_M31_PPB_TCPSocket_Connect(PP_Resource tcp_socket, PP_Resour ce addr, struct PP_CompletionCallback* callback) {
1095 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1096 return iface->Connect(tcp_socket, addr, *callback);
1097 }
1098
1099 static PP_Resource Pnacl_M31_PPB_TCPSocket_GetLocalAddress(PP_Resource tcp_socke t) {
1100 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1101 return iface->GetLocalAddress(tcp_socket);
1102 }
1103
1104 static PP_Resource Pnacl_M31_PPB_TCPSocket_GetRemoteAddress(PP_Resource tcp_sock et) {
1105 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1106 return iface->GetRemoteAddress(tcp_socket);
1107 }
1108
1109 static int32_t Pnacl_M31_PPB_TCPSocket_Read(PP_Resource tcp_socket, char* buffer , int32_t bytes_to_read, struct PP_CompletionCallback* callback) {
1110 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1111 return iface->Read(tcp_socket, buffer, bytes_to_read, *callback);
1112 }
1113
1114 static int32_t Pnacl_M31_PPB_TCPSocket_Write(PP_Resource tcp_socket, const char* buffer, int32_t bytes_to_write, struct PP_CompletionCallback* callback) {
1115 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1116 return iface->Write(tcp_socket, buffer, bytes_to_write, *callback);
1117 }
1118
1119 static int32_t Pnacl_M31_PPB_TCPSocket_Listen(PP_Resource tcp_socket, int32_t ba cklog, struct PP_CompletionCallback* callback) {
1120 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1121 return iface->Listen(tcp_socket, backlog, *callback);
1122 }
1123
1124 static int32_t Pnacl_M31_PPB_TCPSocket_Accept(PP_Resource tcp_socket, PP_Resourc e* accepted_tcp_socket, struct PP_CompletionCallback* callback) {
1125 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1126 return iface->Accept(tcp_socket, accepted_tcp_socket, *callback);
1127 }
1128
1129 static void Pnacl_M31_PPB_TCPSocket_Close(PP_Resource tcp_socket) {
1130 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1131 iface->Close(tcp_socket);
1132 }
1133
1134 static int32_t Pnacl_M31_PPB_TCPSocket_SetOption(PP_Resource tcp_socket, PP_TCPS ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback) {
1135 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re al_iface;
1136 return iface->SetOption(tcp_socket, name, *value, *callback);
1137 }
1138
1139 /* End wrapper methods for PPB_TCPSocket_1_1 */
1140
1076 /* Begin wrapper methods for PPB_TextInputController_1_0 */ 1141 /* Begin wrapper methods for PPB_TextInputController_1_0 */
1077 1142
1078 static void Pnacl_M30_PPB_TextInputController_SetTextInputType(PP_Instance insta nce, PP_TextInput_Type type) { 1143 static void Pnacl_M30_PPB_TextInputController_SetTextInputType(PP_Instance insta nce, PP_TextInput_Type type) {
1079 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn putController_1_0.real_iface; 1144 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn putController_1_0.real_iface;
1080 iface->SetTextInputType(instance, type); 1145 iface->SetTextInputType(instance, type);
1081 } 1146 }
1082 1147
1083 static void Pnacl_M30_PPB_TextInputController_UpdateCaretPosition(PP_Instance in stance, const struct PP_Rect* caret) { 1148 static void Pnacl_M30_PPB_TextInputController_UpdateCaretPosition(PP_Instance in stance, const struct PP_Rect* caret) {
1084 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn putController_1_0.real_iface; 1149 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn putController_1_0.real_iface;
1085 iface->UpdateCaretPosition(instance, caret); 1150 iface->UpdateCaretPosition(instance, caret);
(...skipping 3170 matching lines...) Expand 10 before | Expand all | Expand 10 after
4256 .IsTCPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_TCPSocket_I sTCPSocket, 4321 .IsTCPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_TCPSocket_I sTCPSocket,
4257 .Connect = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_ CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Connect, 4322 .Connect = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_ CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Connect,
4258 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_T CPSocket_GetLocalAddress, 4323 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_T CPSocket_GetLocalAddress,
4259 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_ TCPSocket_GetRemoteAddress, 4324 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_ TCPSocket_GetRemoteAddress,
4260 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_ read, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Read, 4325 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_ read, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Read,
4261 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Wr ite, 4326 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Wr ite,
4262 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_TCPSocket_Close, 4327 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_TCPSocket_Close,
4263 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name, struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSo cket_SetOption 4328 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name, struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSo cket_SetOption
4264 }; 4329 };
4265 4330
4331 struct PPB_TCPSocket_1_1 Pnacl_Wrappers_PPB_TCPSocket_1_1 = {
4332 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M31_PPB_TCPSocket_Cr eate,
4333 .IsTCPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M31_PPB_TCPSocket_I sTCPSocket,
4334 .Bind = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_Com pletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Bind,
4335 .Connect = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_ CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Connect,
4336 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_T CPSocket_GetLocalAddress,
4337 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_ TCPSocket_GetRemoteAddress,
4338 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_ read, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Read,
4339 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Wr ite,
4340 .Listen = (int32_t (*)(PP_Resource tcp_socket, int32_t backlog, struct PP_Co mpletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Listen,
4341 .Accept = (int32_t (*)(PP_Resource tcp_socket, PP_Resource* accepted_tcp_soc ket, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Accept,
4342 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_TCPSocket_Close,
4343 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name, struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSo cket_SetOption
4344 };
4345
4266 struct PPB_TextInputController_1_0 Pnacl_Wrappers_PPB_TextInputController_1_0 = { 4346 struct PPB_TextInputController_1_0 Pnacl_Wrappers_PPB_TextInputController_1_0 = {
4267 .SetTextInputType = (void (*)(PP_Instance instance, PP_TextInput_Type type)) &Pnacl_M30_PPB_TextInputController_SetTextInputType, 4347 .SetTextInputType = (void (*)(PP_Instance instance, PP_TextInput_Type type)) &Pnacl_M30_PPB_TextInputController_SetTextInputType,
4268 .UpdateCaretPosition = (void (*)(PP_Instance instance, const struct PP_Rect* caret))&Pnacl_M30_PPB_TextInputController_UpdateCaretPosition, 4348 .UpdateCaretPosition = (void (*)(PP_Instance instance, const struct PP_Rect* caret))&Pnacl_M30_PPB_TextInputController_UpdateCaretPosition,
4269 .CancelCompositionText = (void (*)(PP_Instance instance))&Pnacl_M30_PPB_Text InputController_CancelCompositionText, 4349 .CancelCompositionText = (void (*)(PP_Instance instance))&Pnacl_M30_PPB_Text InputController_CancelCompositionText,
4270 .UpdateSurroundingText = (void (*)(PP_Instance instance, struct PP_Var text, uint32_t caret, uint32_t anchor))&Pnacl_M30_PPB_TextInputController_UpdateSurro undingText 4350 .UpdateSurroundingText = (void (*)(PP_Instance instance, struct PP_Var text, uint32_t caret, uint32_t anchor))&Pnacl_M30_PPB_TextInputController_UpdateSurro undingText
4271 }; 4351 };
4272 4352
4273 struct PPB_UDPSocket_1_0 Pnacl_Wrappers_PPB_UDPSocket_1_0 = { 4353 struct PPB_UDPSocket_1_0 Pnacl_Wrappers_PPB_UDPSocket_1_0 = {
4274 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M29_PPB_UDPSocket_Cr eate, 4354 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M29_PPB_UDPSocket_Cr eate,
4275 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_UDPSocket_I sUDPSocket, 4355 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_UDPSocket_I sUDPSocket,
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
5230 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetworkProxy_1_0, 5310 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetworkProxy_1_0,
5231 .real_iface = NULL 5311 .real_iface = NULL
5232 }; 5312 };
5233 5313
5234 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0 = { 5314 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0 = {
5235 .iface_macro = PPB_TCPSOCKET_INTERFACE_1_0, 5315 .iface_macro = PPB_TCPSOCKET_INTERFACE_1_0,
5236 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TCPSocket_1_0, 5316 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TCPSocket_1_0,
5237 .real_iface = NULL 5317 .real_iface = NULL
5238 }; 5318 };
5239 5319
5320 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1 = {
5321 .iface_macro = PPB_TCPSOCKET_INTERFACE_1_1,
5322 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TCPSocket_1_1,
5323 .real_iface = NULL
5324 };
5325
5240 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0 = { 5326 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0 = {
5241 .iface_macro = PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0, 5327 .iface_macro = PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0,
5242 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TextInputController_1_0, 5328 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TextInputController_1_0,
5243 .real_iface = NULL 5329 .real_iface = NULL
5244 }; 5330 };
5245 5331
5246 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0 = { 5332 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0 = {
5247 .iface_macro = PPB_UDPSOCKET_INTERFACE_1_0, 5333 .iface_macro = PPB_UDPSOCKET_INTERFACE_1_0,
5248 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_UDPSocket_1_0, 5334 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_UDPSocket_1_0,
5249 .real_iface = NULL 5335 .real_iface = NULL
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
5710 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 5796 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
5711 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 5797 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
5712 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 5798 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
5713 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0, 5799 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0,
5714 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, 5800 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0,
5715 &Pnacl_WrapperInfo_PPB_Messaging_1_0, 5801 &Pnacl_WrapperInfo_PPB_Messaging_1_0,
5716 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, 5802 &Pnacl_WrapperInfo_PPB_MouseLock_1_0,
5717 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, 5803 &Pnacl_WrapperInfo_PPB_NetAddress_1_0,
5718 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, 5804 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0,
5719 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, 5805 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0,
5806 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1,
5720 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, 5807 &Pnacl_WrapperInfo_PPB_TextInputController_1_0,
5721 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, 5808 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0,
5722 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 5809 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
5723 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 5810 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
5724 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 5811 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
5725 &Pnacl_WrapperInfo_PPB_Var_1_0, 5812 &Pnacl_WrapperInfo_PPB_Var_1_0,
5726 &Pnacl_WrapperInfo_PPB_Var_1_1, 5813 &Pnacl_WrapperInfo_PPB_Var_1_1,
5727 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 5814 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
5728 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 5815 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
5729 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 5816 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
5869 if (NULL == iface) return NULL; 5956 if (NULL == iface) return NULL;
5870 wrapper->real_iface = iface; 5957 wrapper->real_iface = iface;
5871 } 5958 }
5872 5959
5873 if (wrapper->wrapped_iface) { 5960 if (wrapper->wrapped_iface) {
5874 return wrapper->wrapped_iface; 5961 return wrapper->wrapped_iface;
5875 } else { 5962 } else {
5876 return wrapper->real_iface; 5963 return wrapper->real_iface;
5877 } 5964 }
5878 } 5965 }
OLDNEW
« no previous file with comments | « ppapi/cpp/tcp_socket.cc ('k') | ppapi/ppapi_shared.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698