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_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int Connect(const net::CompletionCallback& callback) override; | 62 int Connect(const net::CompletionCallback& callback) override; |
63 void Disconnect() override; | 63 void Disconnect() override; |
64 bool IsConnected() const override; | 64 bool IsConnected() const override; |
65 bool IsConnectedAndIdle() const override; | 65 bool IsConnectedAndIdle() const override; |
66 int GetPeerAddress(net::IPEndPoint* address) const override; | 66 int GetPeerAddress(net::IPEndPoint* address) const override; |
67 int GetLocalAddress(net::IPEndPoint* address) const override; | 67 int GetLocalAddress(net::IPEndPoint* address) const override; |
68 const net::BoundNetLog& NetLog() const override; | 68 const net::BoundNetLog& NetLog() const override; |
69 void SetSubresourceSpeculation() override; | 69 void SetSubresourceSpeculation() override; |
70 void SetOmniboxSpeculation() override; | 70 void SetOmniboxSpeculation() override; |
71 bool WasEverUsed() const override; | 71 bool WasEverUsed() const override; |
72 bool UsingTCPFastOpen() const override; | |
73 bool WasNpnNegotiated() const override; | 72 bool WasNpnNegotiated() const override; |
74 net::NextProto GetNegotiatedProtocol() const override; | 73 net::NextProto GetNegotiatedProtocol() const override; |
75 bool GetSSLInfo(net::SSLInfo* ssl_info) override; | 74 bool GetSSLInfo(net::SSLInfo* ssl_info) override; |
76 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; | 75 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; |
77 void ClearConnectionAttempts() override {} | 76 void ClearConnectionAttempts() override {} |
78 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { | 77 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { |
79 } | 78 } |
80 int64_t GetTotalReceivedBytes() const override; | 79 int64_t GetTotalReceivedBytes() const override; |
81 | 80 |
82 private: | 81 private: |
(...skipping 27 matching lines...) Expand all Loading... |
110 net::CompletionCallback user_connect_callback_; | 109 net::CompletionCallback user_connect_callback_; |
111 | 110 |
112 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; | 111 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
113 | 112 |
114 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); | 113 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); |
115 }; | 114 }; |
116 | 115 |
117 } // namespace jingle_glue | 116 } // namespace jingle_glue |
118 | 117 |
119 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 118 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |