| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // On destruction Disconnect() is called. | 45 // On destruction Disconnect() is called. |
| 46 virtual ~SOCKSClientSocket(); | 46 virtual ~SOCKSClientSocket(); |
| 47 | 47 |
| 48 // ClientSocket methods: | 48 // ClientSocket methods: |
| 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; |
| 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 virtual bool UsingTCPFastOpen() const; |
| 60 | 60 |
| 61 // Socket methods: | 61 // Socket methods: |
| 62 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 62 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 63 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 63 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 64 | 64 |
| 65 virtual bool SetReceiveBufferSize(int32 size); | 65 virtual bool SetReceiveBufferSize(int32 size); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 HostResolver::RequestInfo host_request_info_; | 139 HostResolver::RequestInfo host_request_info_; |
| 140 | 140 |
| 141 BoundNetLog net_log_; | 141 BoundNetLog net_log_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 143 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace net | 146 } // namespace net |
| 147 | 147 |
| 148 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 148 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
| OLD | NEW |