| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Does the SOCKS handshake and completes the protocol. | 51 // Does the SOCKS handshake and completes the protocol. |
| 52 virtual int Connect(CompletionCallback* callback); | 52 virtual int Connect(CompletionCallback* callback); |
| 53 virtual void Disconnect(); | 53 virtual void Disconnect(); |
| 54 virtual bool IsConnected() const; | 54 virtual bool IsConnected() const; |
| 55 virtual bool IsConnectedAndIdle() const; | 55 virtual bool IsConnectedAndIdle() const; |
| 56 virtual const BoundNetLog& NetLog() const; | 56 virtual const BoundNetLog& NetLog() const; |
| 57 virtual void SetSubresourceSpeculation(); | 57 virtual void SetSubresourceSpeculation(); |
| 58 virtual void SetOmniboxSpeculation(); | 58 virtual void SetOmniboxSpeculation(); |
| 59 virtual bool WasEverUsed() const; | 59 virtual bool WasEverUsed() const; |
| 60 virtual bool UsingTCPFastOpen() const; | 60 virtual bool UsingTCPFastOpen() const; |
| 61 virtual int64 NumBytesRead() const; |
| 62 virtual base::TimeDelta GetConnectTimeMicros() const; |
| 61 | 63 |
| 62 // Socket methods: | 64 // Socket methods: |
| 63 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 65 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 64 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 66 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 65 | 67 |
| 66 virtual bool SetReceiveBufferSize(int32 size); | 68 virtual bool SetReceiveBufferSize(int32 size); |
| 67 virtual bool SetSendBufferSize(int32 size); | 69 virtual bool SetSendBufferSize(int32 size); |
| 68 | 70 |
| 69 virtual int GetPeerAddress(AddressList* address) const; | 71 virtual int GetPeerAddress(AddressList* address) const; |
| 70 virtual int GetLocalAddress(IPEndPoint* address) const; | 72 virtual int GetLocalAddress(IPEndPoint* address) const; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 HostResolver::RequestInfo host_request_info_; | 132 HostResolver::RequestInfo host_request_info_; |
| 131 | 133 |
| 132 BoundNetLog net_log_; | 134 BoundNetLog net_log_; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 136 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 } // namespace net | 139 } // namespace net |
| 138 | 140 |
| 139 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 141 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
| OLD | NEW |