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

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

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: Original CL, as was submitted, and previously reverted 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 #ifndef NET_SOCKET_UDP_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_UDP_CLIENT_SOCKET_H_
6 #define NET_SOCKET_UDP_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_UDP_CLIENT_SOCKET_H_
7 7
8 #include "net/base/net_log.h" 8 #include "net/base/net_log.h"
9 #include "net/base/rand_callback.h" 9 #include "net/base/rand_callback.h"
10 #include "net/udp/datagram_client_socket.h" 10 #include "net/udp/datagram_client_socket.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // DatagramClientSocket implementation. 26 // DatagramClientSocket implementation.
27 virtual int Connect(const IPEndPoint& address) OVERRIDE; 27 virtual int Connect(const IPEndPoint& address) OVERRIDE;
28 virtual int Read(IOBuffer* buf, int buf_len, 28 virtual int Read(IOBuffer* buf, int buf_len,
29 const CompletionCallback& callback) OVERRIDE; 29 const CompletionCallback& callback) OVERRIDE;
30 virtual int Write(IOBuffer* buf, int buf_len, 30 virtual int Write(IOBuffer* buf, int buf_len,
31 const CompletionCallback& callback) OVERRIDE; 31 const CompletionCallback& callback) OVERRIDE;
32 virtual void Close() OVERRIDE; 32 virtual void Close() OVERRIDE;
33 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 33 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
34 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 34 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
35 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 35 virtual int SetReceiveBufferSize(int32 size) OVERRIDE;
36 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 36 virtual int SetSendBufferSize(int32 size) OVERRIDE;
37 virtual const BoundNetLog& NetLog() const OVERRIDE; 37 virtual const BoundNetLog& NetLog() const OVERRIDE;
38 38
39 private: 39 private:
40 UDPSocket socket_; 40 UDPSocket socket_;
41 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket); 41 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket);
42 }; 42 };
43 43
44 } // namespace net 44 } // namespace net
45 45
46 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_ 46 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698