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

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

Issue 8831001: base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix alignment. Created 9 years 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
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/udp/udp_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 #include "net/base/rand_callback.h" 10 #include "net/base/rand_callback.h"
(...skipping 14 matching lines...) Expand all
25 virtual ~UDPClientSocket(); 25 virtual ~UDPClientSocket();
26 26
27 // DatagramClientSocket implementation. 27 // DatagramClientSocket implementation.
28 virtual int Connect(const IPEndPoint& address) OVERRIDE; 28 virtual int Connect(const IPEndPoint& address) OVERRIDE;
29 virtual int Read(IOBuffer* buf, int buf_len, 29 virtual int Read(IOBuffer* buf, int buf_len,
30 OldCompletionCallback* callback) OVERRIDE; 30 OldCompletionCallback* callback) OVERRIDE;
31 virtual int Read(IOBuffer* buf, int buf_len, 31 virtual int Read(IOBuffer* buf, int buf_len,
32 const CompletionCallback& callback) OVERRIDE; 32 const CompletionCallback& callback) OVERRIDE;
33 virtual int Write(IOBuffer* buf, int buf_len, 33 virtual int Write(IOBuffer* buf, int buf_len,
34 OldCompletionCallback* callback) OVERRIDE; 34 OldCompletionCallback* callback) OVERRIDE;
35 virtual int Write(IOBuffer* buf, int buf_len,
36 const CompletionCallback& callback) OVERRIDE;
35 virtual void Close() OVERRIDE; 37 virtual void Close() OVERRIDE;
36 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 38 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
37 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 39 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
38 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 40 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
39 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 41 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
40 virtual const BoundNetLog& NetLog() const OVERRIDE; 42 virtual const BoundNetLog& NetLog() const OVERRIDE;
41 43
42 private: 44 private:
43 UDPSocket socket_; 45 UDPSocket socket_;
44 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket); 46 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket);
45 }; 47 };
46 48
47 } // namespace net 49 } // namespace net
48 50
49 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_ 51 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/udp/udp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698