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

Side by Side Diff: net/udp/udp_client_socket.cc

Issue 227473008: make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux typo Created 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "net/udp/udp_client_socket.h" 5 #include "net/udp/udp_client_socket.h"
6 6
7 #include "net/base/net_log.h" 7 #include "net/base/net_log.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { 41 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const {
42 return socket_.GetPeerAddress(address); 42 return socket_.GetPeerAddress(address);
43 } 43 }
44 44
45 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { 45 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const {
46 return socket_.GetLocalAddress(address); 46 return socket_.GetLocalAddress(address);
47 } 47 }
48 48
49 bool UDPClientSocket::SetReceiveBufferSize(int32 size) { 49 int UDPClientSocket::SetReceiveBufferSize(int32 size) {
50 return socket_.SetReceiveBufferSize(size); 50 return socket_.SetReceiveBufferSize(size);
51 } 51 }
52 52
53 bool UDPClientSocket::SetSendBufferSize(int32 size) { 53 int UDPClientSocket::SetSendBufferSize(int32 size) {
54 return socket_.SetSendBufferSize(size); 54 return socket_.SetSendBufferSize(size);
55 } 55 }
56 56
57 const BoundNetLog& UDPClientSocket::NetLog() const { 57 const BoundNetLog& UDPClientSocket::NetLog() const {
58 return socket_.NetLog(); 58 return socket_.NetLog();
59 } 59 }
60 60
61 } // namespace net 61 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698