OLD | NEW |
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_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 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual bool IsConnectedAndIdle() const OVERRIDE; | 59 virtual bool IsConnectedAndIdle() const OVERRIDE; |
60 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; | 60 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; |
61 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 61 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
62 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 62 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
63 virtual void SetSubresourceSpeculation() OVERRIDE; | 63 virtual void SetSubresourceSpeculation() OVERRIDE; |
64 virtual void SetOmniboxSpeculation() OVERRIDE; | 64 virtual void SetOmniboxSpeculation() OVERRIDE; |
65 virtual bool WasEverUsed() const OVERRIDE; | 65 virtual bool WasEverUsed() const OVERRIDE; |
66 virtual bool UsingTCPFastOpen() const OVERRIDE; | 66 virtual bool UsingTCPFastOpen() const OVERRIDE; |
67 virtual int64 NumBytesRead() const OVERRIDE; | 67 virtual int64 NumBytesRead() const OVERRIDE; |
68 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 68 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 69 virtual bool WasNpnNegotiated() const OVERRIDE; |
69 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; | 70 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 71 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; |
70 | 72 |
71 private: | 73 private: |
72 // Proxy resolution and connection functions. | 74 // Proxy resolution and connection functions. |
73 void ProcessProxyResolveDone(int status); | 75 void ProcessProxyResolveDone(int status); |
74 void ProcessConnectDone(int status); | 76 void ProcessConnectDone(int status); |
75 | 77 |
76 void CloseTransportSocket(); | 78 void CloseTransportSocket(); |
77 void RunUserConnectCallback(int status); | 79 void RunUserConnectCallback(int status); |
78 int ReconsiderProxyAfterError(int error); | 80 int ReconsiderProxyAfterError(int error); |
79 void ReportSuccessfulProxyConnection(); | 81 void ReportSuccessfulProxyConnection(); |
(...skipping 15 matching lines...) Expand all Loading... |
95 net::BoundNetLog bound_net_log_; | 97 net::BoundNetLog bound_net_log_; |
96 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; | 98 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
97 | 99 |
98 // The callback passed to Connect(). | 100 // The callback passed to Connect(). |
99 net::CompletionCallback user_connect_callback_; | 101 net::CompletionCallback user_connect_callback_; |
100 }; | 102 }; |
101 | 103 |
102 } // namespace notifier | 104 } // namespace notifier |
103 | 105 |
104 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 106 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |