| 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_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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual int Read(IOBuffer* buf, | 68 virtual int Read(IOBuffer* buf, |
| 69 int buf_len, | 69 int buf_len, |
| 70 const CompletionCallback& callback) OVERRIDE; | 70 const CompletionCallback& callback) OVERRIDE; |
| 71 virtual int Write(IOBuffer* buf, | 71 virtual int Write(IOBuffer* buf, |
| 72 int buf_len, | 72 int buf_len, |
| 73 const CompletionCallback& callback) OVERRIDE; | 73 const CompletionCallback& callback) OVERRIDE; |
| 74 | 74 |
| 75 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 75 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
| 76 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 76 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
| 77 | 77 |
| 78 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; | 78 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
| 79 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 79 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 enum State { | 82 enum State { |
| 83 STATE_GREET_WRITE, | 83 STATE_GREET_WRITE, |
| 84 STATE_GREET_WRITE_COMPLETE, | 84 STATE_GREET_WRITE_COMPLETE, |
| 85 STATE_GREET_READ, | 85 STATE_GREET_READ, |
| 86 STATE_GREET_READ_COMPLETE, | 86 STATE_GREET_READ_COMPLETE, |
| 87 STATE_HANDSHAKE_WRITE, | 87 STATE_HANDSHAKE_WRITE, |
| 88 STATE_HANDSHAKE_WRITE_COMPLETE, | 88 STATE_HANDSHAKE_WRITE_COMPLETE, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 HostResolver::RequestInfo host_request_info_; | 154 HostResolver::RequestInfo host_request_info_; |
| 155 | 155 |
| 156 BoundNetLog net_log_; | 156 BoundNetLog net_log_; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); | 158 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace net | 161 } // namespace net |
| 162 | 162 |
| 163 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 163 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| OLD | NEW |