| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 // Socket implementation. | 108 // Socket implementation. |
| 109 int Read(IOBuffer* buf, | 109 int Read(IOBuffer* buf, |
| 110 int buf_len, | 110 int buf_len, |
| 111 const CompletionCallback& callback) override; | 111 const CompletionCallback& callback) override; |
| 112 int Write(IOBuffer* buf, | 112 int Write(IOBuffer* buf, |
| 113 int buf_len, | 113 int buf_len, |
| 114 const CompletionCallback& callback) override; | 114 const CompletionCallback& callback) override; |
| 115 int SetReceiveBufferSize(int32_t size) override; | 115 int SetReceiveBufferSize(int32_t size) override; |
| 116 int SetSendBufferSize(int32_t size) override; | 116 int SetSendBufferSize(int32_t size) override; |
| 117 int SetDoNotFragment(bool do_not_fragment) override; |
| 117 int GetPeerAddress(IPEndPoint* address) const override; | 118 int GetPeerAddress(IPEndPoint* address) const override; |
| 118 int GetLocalAddress(IPEndPoint* address) const override; | 119 int GetLocalAddress(IPEndPoint* address) const override; |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 enum State { | 122 enum State { |
| 122 STATE_BEGIN_CONNECT, | 123 STATE_BEGIN_CONNECT, |
| 123 STATE_TCP_CONNECT, | 124 STATE_TCP_CONNECT, |
| 124 STATE_TCP_CONNECT_COMPLETE, | 125 STATE_TCP_CONNECT_COMPLETE, |
| 125 STATE_SSL_CONNECT, | 126 STATE_SSL_CONNECT, |
| 126 STATE_SSL_CONNECT_COMPLETE, | 127 STATE_SSL_CONNECT_COMPLETE, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 BoundNetLog net_log_; | 205 BoundNetLog net_log_; |
| 205 | 206 |
| 206 base::OneShotTimer connect_timer_; | 207 base::OneShotTimer connect_timer_; |
| 207 | 208 |
| 208 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketWrapper); | 209 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketWrapper); |
| 209 }; | 210 }; |
| 210 | 211 |
| 211 } // namespace net | 212 } // namespace net |
| 212 | 213 |
| 213 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 214 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
| OLD | NEW |