| 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_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| 6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Does the SOCKS handshake and completes the protocol. | 47 // Does the SOCKS handshake and completes the protocol. |
| 48 int Connect(const CompletionCallback& callback) override; | 48 int Connect(const CompletionCallback& callback) override; |
| 49 void Disconnect() override; | 49 void Disconnect() override; |
| 50 bool IsConnected() const override; | 50 bool IsConnected() const override; |
| 51 bool IsConnectedAndIdle() const override; | 51 bool IsConnectedAndIdle() const override; |
| 52 const BoundNetLog& NetLog() const override; | 52 const BoundNetLog& NetLog() const override; |
| 53 void SetSubresourceSpeculation() override; | 53 void SetSubresourceSpeculation() override; |
| 54 void SetOmniboxSpeculation() override; | 54 void SetOmniboxSpeculation() override; |
| 55 bool WasEverUsed() const override; | 55 bool WasEverUsed() const override; |
| 56 bool UsingTCPFastOpen() const override; | |
| 57 bool WasNpnNegotiated() const override; | 56 bool WasNpnNegotiated() const override; |
| 58 NextProto GetNegotiatedProtocol() const override; | 57 NextProto GetNegotiatedProtocol() const override; |
| 59 bool GetSSLInfo(SSLInfo* ssl_info) override; | 58 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 60 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 59 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 61 void ClearConnectionAttempts() override {} | 60 void ClearConnectionAttempts() override {} |
| 62 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 61 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 63 int64_t GetTotalReceivedBytes() const override; | 62 int64_t GetTotalReceivedBytes() const override; |
| 64 | 63 |
| 65 // Socket implementation. | 64 // Socket implementation. |
| 66 int Read(IOBuffer* buf, | 65 int Read(IOBuffer* buf, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 HostResolver::RequestInfo host_request_info_; | 154 HostResolver::RequestInfo host_request_info_; |
| 156 | 155 |
| 157 BoundNetLog net_log_; | 156 BoundNetLog net_log_; |
| 158 | 157 |
| 159 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); | 158 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); |
| 160 }; | 159 }; |
| 161 | 160 |
| 162 } // namespace net | 161 } // namespace net |
| 163 | 162 |
| 164 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 163 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| OLD | NEW |