| 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_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Socket implementation. | 67 // Socket implementation. |
| 68 virtual int Read(IOBuffer* buf, | 68 virtual int Read(IOBuffer* buf, |
| 69 int buf_len, | 69 int buf_len, |
| 70 OldCompletionCallback* callback) OVERRIDE; | 70 OldCompletionCallback* callback) OVERRIDE; |
| 71 virtual int Read(IOBuffer* buf, | 71 virtual int Read(IOBuffer* buf, |
| 72 int buf_len, | 72 int buf_len, |
| 73 const CompletionCallback& callback) OVERRIDE; | 73 const CompletionCallback& callback) OVERRIDE; |
| 74 virtual int Write(IOBuffer* buf, | 74 virtual int Write(IOBuffer* buf, |
| 75 int buf_len, | 75 int buf_len, |
| 76 OldCompletionCallback* callback) OVERRIDE; | 76 OldCompletionCallback* callback) OVERRIDE; |
| 77 virtual int Write(IOBuffer* buf, |
| 78 int buf_len, |
| 79 const CompletionCallback& callback) OVERRIDE; |
| 77 | 80 |
| 78 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 81 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
| 79 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 82 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
| 80 | 83 |
| 81 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; | 84 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; |
| 82 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 85 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 83 | 86 |
| 84 private: | 87 private: |
| 85 enum State { | 88 enum State { |
| 86 STATE_GREET_WRITE, | 89 STATE_GREET_WRITE, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 HostResolver::RequestInfo host_request_info_; | 161 HostResolver::RequestInfo host_request_info_; |
| 159 | 162 |
| 160 BoundNetLog net_log_; | 163 BoundNetLog net_log_; |
| 161 | 164 |
| 162 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); | 165 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 } // namespace net | 168 } // namespace net |
| 166 | 169 |
| 167 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 170 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| OLD | NEW |