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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // On destruction Disconnect() is called. | 48 // On destruction Disconnect() is called. |
49 virtual ~SOCKS5ClientSocket(); | 49 virtual ~SOCKS5ClientSocket(); |
50 | 50 |
51 // ClientSocket methods: | 51 // ClientSocket methods: |
52 | 52 |
53 // Does the SOCKS handshake and completes the protocol. | 53 // Does the SOCKS handshake and completes the protocol. |
54 virtual int Connect(CompletionCallback* callback); | 54 virtual int Connect(CompletionCallback* callback); |
55 virtual void Disconnect(); | 55 virtual void Disconnect(); |
56 virtual bool IsConnected() const; | 56 virtual bool IsConnected() const; |
57 virtual bool IsConnectedAndIdle() const; | 57 virtual bool IsConnectedAndIdle() const; |
58 virtual const BoundNetLog& NetLog() const { return net_log_; } | 58 virtual const BoundNetLog& NetLog() const; |
59 virtual void SetSubresourceSpeculation(); | 59 virtual void SetSubresourceSpeculation(); |
60 virtual void SetOmniboxSpeculation(); | 60 virtual void SetOmniboxSpeculation(); |
61 virtual bool WasEverUsed() const; | 61 virtual bool WasEverUsed() const; |
62 virtual bool UsingTCPFastOpen() const; | 62 virtual bool UsingTCPFastOpen() const; |
63 | 63 |
64 // Socket methods: | 64 // Socket methods: |
65 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 65 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
66 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 66 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
67 | 67 |
68 virtual bool SetReceiveBufferSize(int32 size); | 68 virtual bool SetReceiveBufferSize(int32 size); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 HostResolver::RequestInfo host_request_info_; | 146 HostResolver::RequestInfo host_request_info_; |
147 | 147 |
148 BoundNetLog net_log_; | 148 BoundNetLog net_log_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); | 150 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace net | 153 } // namespace net |
154 | 154 |
155 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 155 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
OLD | NEW |