OLD | NEW |
1 // Copyright (c) 2011 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_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 8 #ifndef JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual bool IsConnectedAndIdle() const OVERRIDE; | 58 virtual bool IsConnectedAndIdle() const OVERRIDE; |
59 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 59 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
60 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 60 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
61 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 61 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
62 virtual void SetSubresourceSpeculation() OVERRIDE; | 62 virtual void SetSubresourceSpeculation() OVERRIDE; |
63 virtual void SetOmniboxSpeculation() OVERRIDE; | 63 virtual void SetOmniboxSpeculation() OVERRIDE; |
64 virtual bool WasEverUsed() const OVERRIDE; | 64 virtual bool WasEverUsed() const OVERRIDE; |
65 virtual bool UsingTCPFastOpen() const OVERRIDE; | 65 virtual bool UsingTCPFastOpen() const OVERRIDE; |
66 virtual int64 NumBytesRead() const OVERRIDE; | 66 virtual int64 NumBytesRead() const OVERRIDE; |
67 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 67 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 68 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
68 | 69 |
69 private: | 70 private: |
70 // Proxy resolution and connection functions. | 71 // Proxy resolution and connection functions. |
71 void ProcessProxyResolveDone(int status); | 72 void ProcessProxyResolveDone(int status); |
72 void ProcessConnectDone(int status); | 73 void ProcessConnectDone(int status); |
73 | 74 |
74 void CloseTransportSocket(); | 75 void CloseTransportSocket(); |
75 void RunUserConnectCallback(int status); | 76 void RunUserConnectCallback(int status); |
76 int ReconsiderProxyAfterError(int error); | 77 int ReconsiderProxyAfterError(int error); |
77 void ReportSuccessfulProxyConnection(); | 78 void ReportSuccessfulProxyConnection(); |
(...skipping 15 matching lines...) Expand all Loading... |
93 net::BoundNetLog bound_net_log_; | 94 net::BoundNetLog bound_net_log_; |
94 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; | 95 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
95 | 96 |
96 // The callback passed to Connect(). | 97 // The callback passed to Connect(). |
97 net::CompletionCallback user_connect_callback_; | 98 net::CompletionCallback user_connect_callback_; |
98 }; | 99 }; |
99 | 100 |
100 } // namespace notifier | 101 } // namespace notifier |
101 | 102 |
102 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 103 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |