| 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 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // StreamSocket implementation. | 62 // StreamSocket implementation. |
| 63 int Connect(const CompletionCallback& callback) override; | 63 int Connect(const CompletionCallback& callback) override; |
| 64 void Disconnect() override; | 64 void Disconnect() override; |
| 65 bool IsConnected() const override; | 65 bool IsConnected() const override; |
| 66 bool IsConnectedAndIdle() const override; | 66 bool IsConnectedAndIdle() const override; |
| 67 const BoundNetLog& NetLog() const override; | 67 const BoundNetLog& NetLog() const override; |
| 68 void SetSubresourceSpeculation() override; | 68 void SetSubresourceSpeculation() override; |
| 69 void SetOmniboxSpeculation() override; | 69 void SetOmniboxSpeculation() override; |
| 70 bool WasEverUsed() const override; | 70 bool WasEverUsed() const override; |
| 71 bool UsingTCPFastOpen() const override; | |
| 72 bool WasNpnNegotiated() const override; | 71 bool WasNpnNegotiated() const override; |
| 73 NextProto GetNegotiatedProtocol() const override; | 72 NextProto GetNegotiatedProtocol() const override; |
| 74 bool GetSSLInfo(SSLInfo* ssl_info) override; | 73 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 75 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 74 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 76 void ClearConnectionAttempts() override {} | 75 void ClearConnectionAttempts() override {} |
| 77 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 76 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 78 int64_t GetTotalReceivedBytes() const override; | 77 int64_t GetTotalReceivedBytes() const override; |
| 79 | 78 |
| 80 // Socket implementation. | 79 // Socket implementation. |
| 81 int Read(IOBuffer* buf, | 80 int Read(IOBuffer* buf, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 ProxyDelegate* proxy_delegate_; | 166 ProxyDelegate* proxy_delegate_; |
| 168 | 167 |
| 169 const BoundNetLog net_log_; | 168 const BoundNetLog net_log_; |
| 170 | 169 |
| 171 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 170 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 172 }; | 171 }; |
| 173 | 172 |
| 174 } // namespace net | 173 } // namespace net |
| 175 | 174 |
| 176 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 175 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |