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

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

Issue 9212047: Add GetBoundAddress to PPB_UDPSocket_Private (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: add a few more unit tests, updates from review 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 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after
2751 channel, 2751 channel,
2752 "PPB_UDPSocket_Private_Bind:iCi:i", 2752 "PPB_UDPSocket_Private_Bind:iCi:i",
2753 udp_socket, 2753 udp_socket,
2754 addr_bytes, addr, 2754 addr_bytes, addr,
2755 callback_id, 2755 callback_id,
2756 pp_error 2756 pp_error
2757 ); 2757 );
2758 return retval; 2758 return retval;
2759 } 2759 }
2760 2760
2761 NaClSrpcError PpbUDPSocketPrivateRpcClient::PPB_UDPSocket_Private_GetBoundAddres s(
brettw 2012/02/09 00:19:26 80 cols, I'd break this after the param, and don't
mtilburg1 2012/02/09 11:08:06 Brett, this file is generated, I cannot edit it di
2762 NaClSrpcChannel* channel,
2763 PP_Resource udp_socket,
2764 nacl_abi_size_t* addr_bytes, char* addr,
2765 int32_t* success) {
2766 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2767 ("%s: PPAPI calls are not supported off the main thread\n",
2768 __FUNCTION__));
2769 NaClSrpcError retval;
2770 retval = NaClSrpcInvokeBySignature(
2771 channel,
2772 "PPB_UDPSocket_Private_GetBoundAddress:i:Ci",
2773 udp_socket,
2774 addr_bytes, addr,
2775 success
2776 );
2777 return retval;
2778 }
2779
2761 NaClSrpcError PpbUDPSocketPrivateRpcClient::PPB_UDPSocket_Private_RecvFrom( 2780 NaClSrpcError PpbUDPSocketPrivateRpcClient::PPB_UDPSocket_Private_RecvFrom(
2762 NaClSrpcChannel* channel, 2781 NaClSrpcChannel* channel,
2763 PP_Resource udp_socket, 2782 PP_Resource udp_socket,
2764 int32_t num_bytes, 2783 int32_t num_bytes,
2765 int32_t callback_id, 2784 int32_t callback_id,
2766 nacl_abi_size_t* buffer_bytes, char* buffer, 2785 nacl_abi_size_t* buffer_bytes, char* buffer,
2767 int32_t* pp_error_or_bytes) { 2786 int32_t* pp_error_or_bytes) {
2768 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 2787 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2769 ("%s: PPAPI calls are not supported off the main thread\n", 2788 ("%s: PPAPI calls are not supported off the main thread\n",
2770 __FUNCTION__)); 2789 __FUNCTION__));
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
3561 channel, 3580 channel,
3562 "PPB_Zoom_ZoomLimitsChanged:idd:", 3581 "PPB_Zoom_ZoomLimitsChanged:idd:",
3563 instance, 3582 instance,
3564 minimum_factor, 3583 minimum_factor,
3565 maximum_factor 3584 maximum_factor
3566 ); 3585 );
3567 return retval; 3586 return retval;
3568 } 3587 }
3569 3588
3570 3589
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698