| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Does the SOCKS handshake and completes the protocol. | 50 // Does the SOCKS handshake and completes the protocol. |
| 51 virtual int Connect(CompletionCallback* callback); | 51 virtual int Connect(CompletionCallback* callback); |
| 52 virtual void Disconnect(); | 52 virtual void Disconnect(); |
| 53 virtual bool IsConnected() const; | 53 virtual bool IsConnected() const; |
| 54 virtual bool IsConnectedAndIdle() const; | 54 virtual bool IsConnectedAndIdle() const; |
| 55 virtual const BoundNetLog& NetLog() const { return net_log_; } | 55 virtual const BoundNetLog& NetLog() const { return net_log_; } |
| 56 virtual void SetSubresourceSpeculation(); | 56 virtual void SetSubresourceSpeculation(); |
| 57 virtual void SetOmniboxSpeculation(); | 57 virtual void SetOmniboxSpeculation(); |
| 58 virtual bool WasEverUsed() const; | 58 virtual bool WasEverUsed() const; |
| 59 virtual bool UsingTCPFastOpen() const; |
| 59 | 60 |
| 60 // Socket methods: | 61 // Socket methods: |
| 61 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 62 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 62 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 63 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 63 | 64 |
| 64 virtual bool SetReceiveBufferSize(int32 size); | 65 virtual bool SetReceiveBufferSize(int32 size); |
| 65 virtual bool SetSendBufferSize(int32 size); | 66 virtual bool SetSendBufferSize(int32 size); |
| 66 | 67 |
| 67 virtual int GetPeerAddress(AddressList* address) const; | 68 virtual int GetPeerAddress(AddressList* address) const; |
| 68 | 69 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 HostResolver::RequestInfo host_request_info_; | 139 HostResolver::RequestInfo host_request_info_; |
| 139 | 140 |
| 140 BoundNetLog net_log_; | 141 BoundNetLog net_log_; |
| 141 | 142 |
| 142 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 143 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace net | 146 } // namespace net |
| 146 | 147 |
| 147 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 148 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
| OLD | NEW |