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

Side by Side Diff: jingle/glue/proxy_resolving_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, 9 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 | « jingle/glue/fake_ssl_client_socket.cc ('k') | jingle/glue/proxy_resolving_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 // This StreamSocket implementation wraps a ClientSocketHandle that is created 5 // This StreamSocket implementation wraps a ClientSocketHandle that is created
6 // from the client socket pool after resolving proxies. 6 // from the client socket pool after resolving proxies.
7 7
8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void Disconnect() OVERRIDE; 58 virtual void Disconnect() OVERRIDE;
59 virtual bool IsConnected() const OVERRIDE; 59 virtual bool IsConnected() const OVERRIDE;
60 virtual bool IsConnectedAndIdle() const OVERRIDE; 60 virtual bool IsConnectedAndIdle() const OVERRIDE;
61 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; 61 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE;
62 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 62 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE;
63 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 63 virtual const net::BoundNetLog& NetLog() const OVERRIDE;
64 virtual void SetSubresourceSpeculation() OVERRIDE; 64 virtual void SetSubresourceSpeculation() OVERRIDE;
65 virtual void SetOmniboxSpeculation() OVERRIDE; 65 virtual void SetOmniboxSpeculation() OVERRIDE;
66 virtual bool WasEverUsed() const OVERRIDE; 66 virtual bool WasEverUsed() const OVERRIDE;
67 virtual bool UsingTCPFastOpen() const OVERRIDE; 67 virtual bool UsingTCPFastOpen() const OVERRIDE;
68 virtual int64 NumBytesRead() const OVERRIDE;
69 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
70 virtual bool WasNpnNegotiated() const OVERRIDE; 68 virtual bool WasNpnNegotiated() const OVERRIDE;
71 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; 69 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE;
72 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; 70 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE;
73 71
74 private: 72 private:
75 // Proxy resolution and connection functions. 73 // Proxy resolution and connection functions.
76 void ProcessProxyResolveDone(int status); 74 void ProcessProxyResolveDone(int status);
77 void ProcessConnectDone(int status); 75 void ProcessConnectDone(int status);
78 76
79 void CloseTransportSocket(); 77 void CloseTransportSocket();
(...skipping 19 matching lines...) Expand all
99 net::BoundNetLog bound_net_log_; 97 net::BoundNetLog bound_net_log_;
100 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; 98 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_;
101 99
102 // The callback passed to Connect(). 100 // The callback passed to Connect().
103 net::CompletionCallback user_connect_callback_; 101 net::CompletionCallback user_connect_callback_;
104 }; 102 };
105 103
106 } // namespace jingle_glue 104 } // namespace jingle_glue
107 105
108 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 106 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/glue/fake_ssl_client_socket.cc ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698