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

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

Issue 9235035: Add getter methods for sockaddr. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fixing errors found by review system. Created 8 years, 10 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 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 NaClSrpcError retval; 2019 NaClSrpcError retval;
2020 retval = NaClSrpcInvokeBySignature( 2020 retval = NaClSrpcInvokeBySignature(
2021 channel, 2021 channel,
2022 "PPB_NetAddress_Private_GetAnyAddress:i:C", 2022 "PPB_NetAddress_Private_GetAnyAddress:i:C",
2023 is_ipv6, 2023 is_ipv6,
2024 addr_bytes, addr 2024 addr_bytes, addr
2025 ); 2025 );
2026 return retval; 2026 return retval;
2027 } 2027 }
2028 2028
2029 NaClSrpcError PpbNetAddressPrivateRpcClient::PPB_NetAddress_Private_GetFamily(
2030 NaClSrpcChannel* channel,
2031 nacl_abi_size_t addr_bytes, char* addr,
2032 int32_t* addr_family) {
2033 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2034 ("%s: PPAPI calls are not supported off the main thread\n",
2035 __FUNCTION__));
2036 NaClSrpcError retval;
2037 retval = NaClSrpcInvokeBySignature(
2038 channel,
2039 "PPB_NetAddress_Private_GetFamily:C:i",
2040 addr_bytes, addr,
2041 addr_family
2042 );
2043 return retval;
2044 }
2045
2046 NaClSrpcError PpbNetAddressPrivateRpcClient::PPB_NetAddress_Private_GetPort(
2047 NaClSrpcChannel* channel,
2048 nacl_abi_size_t addr_bytes, char* addr,
2049 int32_t* port) {
2050 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2051 ("%s: PPAPI calls are not supported off the main thread\n",
2052 __FUNCTION__));
2053 NaClSrpcError retval;
2054 retval = NaClSrpcInvokeBySignature(
2055 channel,
2056 "PPB_NetAddress_Private_GetPort:C:i",
2057 addr_bytes, addr,
2058 port
2059 );
2060 return retval;
2061 }
2062
2063 NaClSrpcError PpbNetAddressPrivateRpcClient::PPB_NetAddress_Private_GetAddress(
2064 NaClSrpcChannel* channel,
2065 nacl_abi_size_t addr_bytes, char* addr,
2066 nacl_abi_size_t* address_bytes, char* address) {
2067 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2068 ("%s: PPAPI calls are not supported off the main thread\n",
2069 __FUNCTION__));
2070 NaClSrpcError retval;
2071 retval = NaClSrpcInvokeBySignature(
2072 channel,
2073 "PPB_NetAddress_Private_GetAddress:C:C",
2074 addr_bytes, addr,
2075 address_bytes, address
2076 );
2077 return retval;
2078 }
2079
2029 NaClSrpcError PpbPdfRpcClient::PPB_PDF_GetLocalizedString( 2080 NaClSrpcError PpbPdfRpcClient::PPB_PDF_GetLocalizedString(
2030 NaClSrpcChannel* channel, 2081 NaClSrpcChannel* channel,
2031 PP_Instance instance, 2082 PP_Instance instance,
2032 int32_t string_id, 2083 int32_t string_id,
2033 nacl_abi_size_t* string_bytes, char* string) { 2084 nacl_abi_size_t* string_bytes, char* string) {
2034 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 2085 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2035 ("%s: PPAPI calls are not supported off the main thread\n", 2086 ("%s: PPAPI calls are not supported off the main thread\n",
2036 __FUNCTION__)); 2087 __FUNCTION__));
2037 NaClSrpcError retval; 2088 NaClSrpcError retval;
2038 retval = NaClSrpcInvokeBySignature( 2089 retval = NaClSrpcInvokeBySignature(
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 channel, 3648 channel,
3598 "PPB_Zoom_ZoomLimitsChanged:idd:", 3649 "PPB_Zoom_ZoomLimitsChanged:idd:",
3599 instance, 3650 instance,
3600 minimum_factor, 3651 minimum_factor,
3601 maximum_factor 3652 maximum_factor
3602 ); 3653 );
3603 return retval; 3654 return retval;
3604 } 3655 }
3605 3656
3606 3657
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698