OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // StreamSocket implementation. | 91 // StreamSocket implementation. |
92 int Connect(const CompletionCallback& callback) override; | 92 int Connect(const CompletionCallback& callback) override; |
93 void Disconnect() override; | 93 void Disconnect() override; |
94 bool IsConnected() const override; | 94 bool IsConnected() const override; |
95 bool IsConnectedAndIdle() const override; | 95 bool IsConnectedAndIdle() const override; |
96 const BoundNetLog& NetLog() const override; | 96 const BoundNetLog& NetLog() const override; |
97 void SetSubresourceSpeculation() override; | 97 void SetSubresourceSpeculation() override; |
98 void SetOmniboxSpeculation() override; | 98 void SetOmniboxSpeculation() override; |
99 bool WasEverUsed() const override; | 99 bool WasEverUsed() const override; |
100 bool UsingTCPFastOpen() const override; | |
101 bool WasNpnNegotiated() const override; | 100 bool WasNpnNegotiated() const override; |
102 NextProto GetNegotiatedProtocol() const override; | 101 NextProto GetNegotiatedProtocol() const override; |
103 bool GetSSLInfo(SSLInfo* ssl_info) override; | 102 bool GetSSLInfo(SSLInfo* ssl_info) override; |
104 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 103 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
105 void ClearConnectionAttempts() override; | 104 void ClearConnectionAttempts() override; |
106 void AddConnectionAttempts(const ConnectionAttempts& attempts) override; | 105 void AddConnectionAttempts(const ConnectionAttempts& attempts) override; |
107 int64_t GetTotalReceivedBytes() const override; | 106 int64_t GetTotalReceivedBytes() const override; |
108 | 107 |
109 // Socket implementation. | 108 // Socket implementation. |
110 int Read(IOBuffer* buf, | 109 int Read(IOBuffer* buf, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 BoundNetLog net_log_; | 206 BoundNetLog net_log_; |
208 | 207 |
209 base::OneShotTimer connect_timer_; | 208 base::OneShotTimer connect_timer_; |
210 | 209 |
211 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketWrapper); | 210 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketWrapper); |
212 }; | 211 }; |
213 | 212 |
214 } // namespace net | 213 } // namespace net |
215 | 214 |
216 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 215 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
OLD | NEW |