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

Side by Side Diff: net/socket/socks_client_socket.h

Issue 8801005: base::Bind: Convert Socket::Read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. 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/socket/socks5_client_socket.cc ('k') | net/socket/socks_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_SOCKS_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 HostResolver* host_resolver); 38 HostResolver* host_resolver);
39 39
40 // Deprecated constructor (http://crbug.com/37810) that takes a StreamSocket. 40 // Deprecated constructor (http://crbug.com/37810) that takes a StreamSocket.
41 SOCKSClientSocket(StreamSocket* transport_socket, 41 SOCKSClientSocket(StreamSocket* transport_socket,
42 const HostResolver::RequestInfo& req_info, 42 const HostResolver::RequestInfo& req_info,
43 HostResolver* host_resolver); 43 HostResolver* host_resolver);
44 44
45 // On destruction Disconnect() is called. 45 // On destruction Disconnect() is called.
46 virtual ~SOCKSClientSocket(); 46 virtual ~SOCKSClientSocket();
47 47
48 // StreamSocket methods: 48 // StreamSocket implementation.
49 49
50 // Does the SOCKS handshake and completes the protocol. 50 // Does the SOCKS handshake and completes the protocol.
51 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; 51 virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
52 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; 52 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE;
53 virtual void Disconnect() OVERRIDE; 53 virtual void Disconnect() OVERRIDE;
54 virtual bool IsConnected() const OVERRIDE; 54 virtual bool IsConnected() const OVERRIDE;
55 virtual bool IsConnectedAndIdle() const OVERRIDE; 55 virtual bool IsConnectedAndIdle() const OVERRIDE;
56 virtual const BoundNetLog& NetLog() const OVERRIDE; 56 virtual const BoundNetLog& NetLog() const OVERRIDE;
57 virtual void SetSubresourceSpeculation() OVERRIDE; 57 virtual void SetSubresourceSpeculation() OVERRIDE;
58 virtual void SetOmniboxSpeculation() OVERRIDE; 58 virtual void SetOmniboxSpeculation() OVERRIDE;
59 virtual bool WasEverUsed() const OVERRIDE; 59 virtual bool WasEverUsed() const OVERRIDE;
60 virtual bool UsingTCPFastOpen() const OVERRIDE; 60 virtual bool UsingTCPFastOpen() const OVERRIDE;
61 virtual int64 NumBytesRead() const OVERRIDE; 61 virtual int64 NumBytesRead() const OVERRIDE;
62 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 62 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
63 63
64 // Socket methods: 64 // Socket implementation.
65 virtual int Read(IOBuffer* buf, 65 virtual int Read(IOBuffer* buf,
66 int buf_len, 66 int buf_len,
67 OldCompletionCallback* callback) OVERRIDE; 67 OldCompletionCallback* callback) OVERRIDE;
68 virtual int Read(IOBuffer* buf,
69 int buf_len,
70 const CompletionCallback& callback) OVERRIDE;
68 virtual int Write(IOBuffer* buf, 71 virtual int Write(IOBuffer* buf,
69 int buf_len, 72 int buf_len,
70 OldCompletionCallback* callback) OVERRIDE; 73 OldCompletionCallback* callback) OVERRIDE;
71 74
72 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 75 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
73 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 76 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
74 77
75 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 78 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
76 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 79 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
77 80
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 HostResolver::RequestInfo host_request_info_; 140 HostResolver::RequestInfo host_request_info_;
138 141
139 BoundNetLog net_log_; 142 BoundNetLog net_log_;
140 143
141 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 144 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
142 }; 145 };
143 146
144 } // namespace net 147 } // namespace net
145 148
146 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 149 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698