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

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

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 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
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/socket/socks5_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) 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 #ifndef NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Does the SOCKS handshake and completes the protocol. 52 // Does the SOCKS handshake and completes the protocol.
53 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 53 virtual int Connect(const CompletionCallback& callback) OVERRIDE;
54 virtual void Disconnect() OVERRIDE; 54 virtual void Disconnect() OVERRIDE;
55 virtual bool IsConnected() const OVERRIDE; 55 virtual bool IsConnected() const OVERRIDE;
56 virtual bool IsConnectedAndIdle() const OVERRIDE; 56 virtual bool IsConnectedAndIdle() const OVERRIDE;
57 virtual const BoundNetLog& NetLog() const OVERRIDE; 57 virtual const BoundNetLog& NetLog() const OVERRIDE;
58 virtual void SetSubresourceSpeculation() OVERRIDE; 58 virtual void SetSubresourceSpeculation() OVERRIDE;
59 virtual void SetOmniboxSpeculation() OVERRIDE; 59 virtual void SetOmniboxSpeculation() OVERRIDE;
60 virtual bool WasEverUsed() const OVERRIDE; 60 virtual bool WasEverUsed() const OVERRIDE;
61 virtual bool UsingTCPFastOpen() const OVERRIDE; 61 virtual bool UsingTCPFastOpen() const OVERRIDE;
62 virtual int64 NumBytesRead() const OVERRIDE;
63 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
64 virtual bool WasNpnNegotiated() const OVERRIDE; 62 virtual bool WasNpnNegotiated() const OVERRIDE;
65 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 63 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
66 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 64 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
67 65
68 // Socket implementation. 66 // Socket implementation.
69 virtual int Read(IOBuffer* buf, 67 virtual int Read(IOBuffer* buf,
70 int buf_len, 68 int buf_len,
71 const CompletionCallback& callback) OVERRIDE; 69 const CompletionCallback& callback) OVERRIDE;
72 virtual int Write(IOBuffer* buf, 70 virtual int Write(IOBuffer* buf,
73 int buf_len, 71 int buf_len,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 HostResolver::RequestInfo host_request_info_; 153 HostResolver::RequestInfo host_request_info_;
156 154
157 BoundNetLog net_log_; 155 BoundNetLog net_log_;
158 156
159 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); 157 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket);
160 }; 158 };
161 159
162 } // namespace net 160 } // namespace net
163 161
164 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 162 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/socket/socks5_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698