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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 9808028: NaCl proxy for PPB_NetAddress_Private_1_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
6 // 6 //
7 // Automatically generated code. See srpcgen.py 7 // Automatically generated code. See srpcgen.py
8 // 8 //
9 // NaCl Simple Remote Procedure Call interface abstractions. 9 // NaCl Simple Remote Procedure Call interface abstractions.
10 10
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 retval = NaClSrpcInvokeBySignature( 2224 retval = NaClSrpcInvokeBySignature(
2225 channel, 2225 channel,
2226 "PPB_NetAddress_Private_GetAddress:C:Ci", 2226 "PPB_NetAddress_Private_GetAddress:C:Ci",
2227 addr_bytes, addr, 2227 addr_bytes, addr,
2228 address_bytes, address, 2228 address_bytes, address,
2229 success 2229 success
2230 ); 2230 );
2231 return retval; 2231 return retval;
2232 } 2232 }
2233 2233
2234 NaClSrpcError PpbNetAddressPrivateRpcClient::PPB_NetAddress_Private_GetScopeID(
2235 NaClSrpcChannel* channel,
2236 nacl_abi_size_t addr_bytes, char* addr,
2237 int32_t* scope_id) {
2238 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2239 ("%s: PPAPI calls are not supported off the main thread\n",
2240 __FUNCTION__));
2241 NaClSrpcError retval;
2242 retval = NaClSrpcInvokeBySignature(
2243 channel,
2244 "PPB_NetAddress_Private_GetScopeID:C:i",
2245 addr_bytes, addr,
2246 scope_id
2247 );
2248 return retval;
2249 }
2250
2251 NaClSrpcError PpbNetAddressPrivateRpcClient::PPB_NetAddress_Private_CreateFromIP v4Address(
2252 NaClSrpcChannel* channel,
2253 nacl_abi_size_t ip_bytes, char* ip,
2254 int32_t port,
2255 nacl_abi_size_t* addr_bytes, char* addr) {
2256 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2257 ("%s: PPAPI calls are not supported off the main thread\n",
2258 __FUNCTION__));
2259 NaClSrpcError retval;
2260 retval = NaClSrpcInvokeBySignature(
2261 channel,
2262 "PPB_NetAddress_Private_CreateFromIPv4Address:Ci:C",
2263 ip_bytes, ip,
2264 port,
2265 addr_bytes, addr
2266 );
2267 return retval;
2268 }
2269
2270 NaClSrpcError PpbNetAddressPrivateRpcClient::PPB_NetAddress_Private_CreateFromIP v6Address(
2271 NaClSrpcChannel* channel,
2272 nacl_abi_size_t ip_bytes, char* ip,
2273 int32_t scope_id,
2274 int32_t port,
2275 nacl_abi_size_t* addr_bytes, char* addr) {
2276 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2277 ("%s: PPAPI calls are not supported off the main thread\n",
2278 __FUNCTION__));
2279 NaClSrpcError retval;
2280 retval = NaClSrpcInvokeBySignature(
2281 channel,
2282 "PPB_NetAddress_Private_CreateFromIPv6Address:Cii:C",
2283 ip_bytes, ip,
2284 scope_id,
2285 port,
2286 addr_bytes, addr
2287 );
2288 return retval;
2289 }
2290
2234 NaClSrpcError PpbPdfRpcClient::PPB_PDF_GetLocalizedString( 2291 NaClSrpcError PpbPdfRpcClient::PPB_PDF_GetLocalizedString(
2235 NaClSrpcChannel* channel, 2292 NaClSrpcChannel* channel,
2236 PP_Instance instance, 2293 PP_Instance instance,
2237 int32_t string_id, 2294 int32_t string_id,
2238 nacl_abi_size_t* string_bytes, char* string) { 2295 nacl_abi_size_t* string_bytes, char* string) {
2239 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 2296 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2240 ("%s: PPAPI calls are not supported off the main thread\n", 2297 ("%s: PPAPI calls are not supported off the main thread\n",
2241 __FUNCTION__)); 2298 __FUNCTION__));
2242 NaClSrpcError retval; 2299 NaClSrpcError retval;
2243 retval = NaClSrpcInvokeBySignature( 2300 retval = NaClSrpcInvokeBySignature(
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
3878 channel, 3935 channel,
3879 "PPB_Zoom_ZoomLimitsChanged:idd:", 3936 "PPB_Zoom_ZoomLimitsChanged:idd:",
3880 instance, 3937 instance,
3881 minimum_factor, 3938 minimum_factor,
3882 maximum_factor 3939 maximum_factor
3883 ); 3940 );
3884 return retval; 3941 return retval;
3885 } 3942 }
3886 3943
3887 3944
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698