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

Side by Side Diff: ppapi/thunk/ppb_udp_socket_thunk.cc

Issue 1820873005: Run ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ppapi/thunk/ppb_truetype_font_dev_thunk.cc ('k') | ppapi/thunk/ppb_uma_private_thunk.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 // From ppb_udp_socket.idl modified Fri Mar 13 17:49:57 2015. 5 // From ppb_udp_socket.idl modified Wed Jan 27 17:10:16 2016.
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
11 #include "ppapi/c/ppb_udp_socket.h" 11 #include "ppapi/c/ppb_udp_socket.h"
12 #include "ppapi/shared_impl/tracked_callback.h" 12 #include "ppapi/shared_impl/tracked_callback.h"
13 #include "ppapi/thunk/enter.h" 13 #include "ppapi/thunk/enter.h"
14 #include "ppapi/thunk/ppapi_thunk_export.h" 14 #include "ppapi/thunk/ppapi_thunk_export.h"
15 #include "ppapi/thunk/ppb_udp_socket_api.h" 15 #include "ppapi/thunk/ppb_udp_socket_api.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 int32_t LeaveGroup(PP_Resource udp_socket, 134 int32_t LeaveGroup(PP_Resource udp_socket,
135 PP_Resource group, 135 PP_Resource group,
136 struct PP_CompletionCallback callback) { 136 struct PP_CompletionCallback callback) {
137 VLOG(4) << "PPB_UDPSocket::LeaveGroup()"; 137 VLOG(4) << "PPB_UDPSocket::LeaveGroup()";
138 EnterResource<PPB_UDPSocket_API> enter(udp_socket, callback, true); 138 EnterResource<PPB_UDPSocket_API> enter(udp_socket, callback, true);
139 if (enter.failed()) 139 if (enter.failed())
140 return enter.retval(); 140 return enter.retval();
141 return enter.SetResult(enter.object()->LeaveGroup(group, enter.callback())); 141 return enter.SetResult(enter.object()->LeaveGroup(group, enter.callback()));
142 } 142 }
143 143
144 const PPB_UDPSocket_1_0 g_ppb_udpsocket_thunk_1_0 = {&Create, 144 const PPB_UDPSocket_1_0 g_ppb_udpsocket_thunk_1_0 = {
145 &IsUDPSocket, 145 &Create, &IsUDPSocket, &Bind, &GetBoundAddress,
146 &Bind, 146 &RecvFrom, &SendTo, &Close, &SetOption_1_0};
147 &GetBoundAddress,
148 &RecvFrom,
149 &SendTo,
150 &Close,
151 &SetOption_1_0};
152 147
153 const PPB_UDPSocket_1_1 g_ppb_udpsocket_thunk_1_1 = {&Create, 148 const PPB_UDPSocket_1_1 g_ppb_udpsocket_thunk_1_1 = {
154 &IsUDPSocket, 149 &Create, &IsUDPSocket, &Bind, &GetBoundAddress,
155 &Bind, 150 &RecvFrom, &SendTo, &Close, &SetOption_1_1};
156 &GetBoundAddress,
157 &RecvFrom,
158 &SendTo,
159 &Close,
160 &SetOption_1_1};
161 151
162 const PPB_UDPSocket_1_2 g_ppb_udpsocket_thunk_1_2 = {&Create, 152 const PPB_UDPSocket_1_2 g_ppb_udpsocket_thunk_1_2 = {
163 &IsUDPSocket, 153 &Create, &IsUDPSocket, &Bind, &GetBoundAddress, &RecvFrom,
164 &Bind, 154 &SendTo, &Close, &SetOption, &JoinGroup, &LeaveGroup};
165 &GetBoundAddress,
166 &RecvFrom,
167 &SendTo,
168 &Close,
169 &SetOption,
170 &JoinGroup,
171 &LeaveGroup};
172 155
173 } // namespace 156 } // namespace
174 157
175 PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_0* GetPPB_UDPSocket_1_0_Thunk() { 158 PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_0* GetPPB_UDPSocket_1_0_Thunk() {
176 return &g_ppb_udpsocket_thunk_1_0; 159 return &g_ppb_udpsocket_thunk_1_0;
177 } 160 }
178 161
179 PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_1* GetPPB_UDPSocket_1_1_Thunk() { 162 PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_1* GetPPB_UDPSocket_1_1_Thunk() {
180 return &g_ppb_udpsocket_thunk_1_1; 163 return &g_ppb_udpsocket_thunk_1_1;
181 } 164 }
182 165
183 PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_2* GetPPB_UDPSocket_1_2_Thunk() { 166 PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_2* GetPPB_UDPSocket_1_2_Thunk() {
184 return &g_ppb_udpsocket_thunk_1_2; 167 return &g_ppb_udpsocket_thunk_1_2;
185 } 168 }
186 169
187 } // namespace thunk 170 } // namespace thunk
188 } // namespace ppapi 171 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_truetype_font_dev_thunk.cc ('k') | ppapi/thunk/ppb_uma_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698