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_SOCKS_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // Does the SOCKS handshake and completes the protocol. | 45 // Does the SOCKS handshake and completes the protocol. |
46 int Connect(const CompletionCallback& callback) override; | 46 int Connect(const CompletionCallback& callback) override; |
47 void Disconnect() override; | 47 void Disconnect() override; |
48 bool IsConnected() const override; | 48 bool IsConnected() const override; |
49 bool IsConnectedAndIdle() const override; | 49 bool IsConnectedAndIdle() const override; |
50 const BoundNetLog& NetLog() const override; | 50 const BoundNetLog& NetLog() const override; |
51 void SetSubresourceSpeculation() override; | 51 void SetSubresourceSpeculation() override; |
52 void SetOmniboxSpeculation() override; | 52 void SetOmniboxSpeculation() override; |
53 bool WasEverUsed() const override; | 53 bool WasEverUsed() const override; |
54 bool UsingTCPFastOpen() const override; | |
55 bool WasNpnNegotiated() const override; | 54 bool WasNpnNegotiated() const override; |
56 NextProto GetNegotiatedProtocol() const override; | 55 NextProto GetNegotiatedProtocol() const override; |
57 bool GetSSLInfo(SSLInfo* ssl_info) override; | 56 bool GetSSLInfo(SSLInfo* ssl_info) override; |
58 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 57 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
59 void ClearConnectionAttempts() override {} | 58 void ClearConnectionAttempts() override {} |
60 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 59 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
61 int64_t GetTotalReceivedBytes() const override; | 60 int64_t GetTotalReceivedBytes() const override; |
62 | 61 |
63 // Socket implementation. | 62 // Socket implementation. |
64 int Read(IOBuffer* buf, | 63 int Read(IOBuffer* buf, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 RequestPriority priority_; | 137 RequestPriority priority_; |
139 | 138 |
140 BoundNetLog net_log_; | 139 BoundNetLog net_log_; |
141 | 140 |
142 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 141 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
143 }; | 142 }; |
144 | 143 |
145 } // namespace net | 144 } // namespace net |
146 | 145 |
147 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 146 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
OLD | NEW |