| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Socket implementation. | 64 // Socket implementation. |
| 65 int Read(IOBuffer* buf, | 65 int Read(IOBuffer* buf, |
| 66 int buf_len, | 66 int buf_len, |
| 67 const CompletionCallback& callback) override; | 67 const CompletionCallback& callback) override; |
| 68 int Write(IOBuffer* buf, | 68 int Write(IOBuffer* buf, |
| 69 int buf_len, | 69 int buf_len, |
| 70 const CompletionCallback& callback) override; | 70 const CompletionCallback& callback) override; |
| 71 | 71 |
| 72 int SetReceiveBufferSize(int32_t size) override; | 72 int SetReceiveBufferSize(int32_t size) override; |
| 73 int SetSendBufferSize(int32_t size) override; | 73 int SetSendBufferSize(int32_t size) override; |
| 74 int SetDoNotFragment(bool do_not_fragment) override; |
| 74 | 75 |
| 75 int GetPeerAddress(IPEndPoint* address) const override; | 76 int GetPeerAddress(IPEndPoint* address) const override; |
| 76 int GetLocalAddress(IPEndPoint* address) const override; | 77 int GetLocalAddress(IPEndPoint* address) const override; |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 enum State { | 80 enum State { |
| 80 STATE_GREET_WRITE, | 81 STATE_GREET_WRITE, |
| 81 STATE_GREET_WRITE_COMPLETE, | 82 STATE_GREET_WRITE_COMPLETE, |
| 82 STATE_GREET_READ, | 83 STATE_GREET_READ, |
| 83 STATE_GREET_READ_COMPLETE, | 84 STATE_GREET_READ_COMPLETE, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 HostResolver::RequestInfo host_request_info_; | 155 HostResolver::RequestInfo host_request_info_; |
| 155 | 156 |
| 156 BoundNetLog net_log_; | 157 BoundNetLog net_log_; |
| 157 | 158 |
| 158 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); | 159 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); |
| 159 }; | 160 }; |
| 160 | 161 |
| 161 } // namespace net | 162 } // namespace net |
| 162 | 163 |
| 163 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ | 164 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ |
| OLD | NEW |