OLD | NEW |
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 // 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 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void Disconnect() OVERRIDE; | 49 virtual void Disconnect() OVERRIDE; |
50 virtual bool IsConnected() const OVERRIDE; | 50 virtual bool IsConnected() const OVERRIDE; |
51 virtual bool IsConnectedAndIdle() const OVERRIDE; | 51 virtual bool IsConnectedAndIdle() const OVERRIDE; |
52 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 52 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
53 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 53 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
54 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 54 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
55 virtual void SetSubresourceSpeculation() OVERRIDE; | 55 virtual void SetSubresourceSpeculation() OVERRIDE; |
56 virtual void SetOmniboxSpeculation() OVERRIDE; | 56 virtual void SetOmniboxSpeculation() OVERRIDE; |
57 virtual bool WasEverUsed() const OVERRIDE; | 57 virtual bool WasEverUsed() const OVERRIDE; |
58 virtual bool UsingTCPFastOpen() const OVERRIDE; | 58 virtual bool UsingTCPFastOpen() const OVERRIDE; |
59 virtual int64 NumBytesRead() const OVERRIDE; | |
60 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | |
61 | 59 |
62 private: | 60 private: |
63 // Proxy resolution and connection functions. | 61 // Proxy resolution and connection functions. |
64 void ProcessProxyResolveDone(int status); | 62 void ProcessProxyResolveDone(int status); |
65 void ProcessConnectDone(int status); | 63 void ProcessConnectDone(int status); |
66 | 64 |
67 void CloseTransportSocket(); | 65 void CloseTransportSocket(); |
68 void RunUserConnectCallback(int status); | 66 void RunUserConnectCallback(int status); |
69 int ReconsiderProxyAfterError(int error); | 67 int ReconsiderProxyAfterError(int error); |
70 | 68 |
(...skipping 16 matching lines...) Expand all Loading... |
87 ScopedRunnableMethodFactory<ProxyResolvingClientSocket> | 85 ScopedRunnableMethodFactory<ProxyResolvingClientSocket> |
88 scoped_runnable_method_factory_; | 86 scoped_runnable_method_factory_; |
89 | 87 |
90 // The callback passed to Connect(). | 88 // The callback passed to Connect(). |
91 net::CompletionCallback* user_connect_callback_; | 89 net::CompletionCallback* user_connect_callback_; |
92 }; | 90 }; |
93 | 91 |
94 } // namespace notifier | 92 } // namespace notifier |
95 | 93 |
96 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 94 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |