| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 57 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 58 | 58 |
| 59 // Socket implementation. | 59 // Socket implementation. |
| 60 virtual int Read(IOBuffer* buf, | 60 virtual int Read(IOBuffer* buf, |
| 61 int buf_len, | 61 int buf_len, |
| 62 const CompletionCallback& callback) OVERRIDE; | 62 const CompletionCallback& callback) OVERRIDE; |
| 63 virtual int Write(IOBuffer* buf, | 63 virtual int Write(IOBuffer* buf, |
| 64 int buf_len, | 64 int buf_len, |
| 65 const CompletionCallback& callback) OVERRIDE; | 65 const CompletionCallback& callback) OVERRIDE; |
| 66 | 66 |
| 67 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 67 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; |
| 68 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 68 virtual int SetSendBufferSize(int32 size) OVERRIDE; |
| 69 | 69 |
| 70 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 70 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
| 71 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 71 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 enum State { | 74 enum State { |
| 75 STATE_GREET_WRITE, | 75 STATE_GREET_WRITE, |
| 76 STATE_GREET_WRITE_COMPLETE, | 76 STATE_GREET_WRITE_COMPLETE, |
| 77 STATE_GREET_READ, | 77 STATE_GREET_READ, |
| 78 STATE_GREET_READ_COMPLETE, | 78 STATE_GREET_READ_COMPLETE, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 HostResolver::RequestInfo host_request_info_; | 149 HostResolver::RequestInfo host_request_info_; |
| 150 | 150 |
| 151 BoundNetLog net_log_; | 151 BoundNetLog net_log_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); | 153 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace net | 156 } // namespace net |
| 157 | 157 |
| 158 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 158 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| OLD | NEW |