| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SOCKS_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 friend class base::RefCounted<SOCKSSocketParams>; | 41 friend class base::RefCounted<SOCKSSocketParams>; |
| 42 ~SOCKSSocketParams(); | 42 ~SOCKSSocketParams(); |
| 43 | 43 |
| 44 // The tcp connection must point toward the proxy server. | 44 // The tcp connection must point toward the proxy server. |
| 45 const scoped_refptr<TCPSocketParams> tcp_params_; | 45 const scoped_refptr<TCPSocketParams> tcp_params_; |
| 46 // This is the HTTP destination. | 46 // This is the HTTP destination. |
| 47 HostResolver::RequestInfo destination_; | 47 HostResolver::RequestInfo destination_; |
| 48 const bool socks_v5_; | 48 const bool socks_v5_; |
| 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(SOCKSSocketParams); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 // SOCKSConnectJob handles the handshake to a socks server after setting up | 53 // SOCKSConnectJob handles the handshake to a socks server after setting up |
| 52 // an underlying transport socket. | 54 // an underlying transport socket. |
| 53 class SOCKSConnectJob : public ConnectJob { | 55 class SOCKSConnectJob : public ConnectJob { |
| 54 public: | 56 public: |
| 55 SOCKSConnectJob(const std::string& group_name, | 57 SOCKSConnectJob(const std::string& group_name, |
| 56 const scoped_refptr<SOCKSSocketParams>& params, | 58 const scoped_refptr<SOCKSSocketParams>& params, |
| 57 const base::TimeDelta& timeout_duration, | 59 const base::TimeDelta& timeout_duration, |
| 58 const scoped_refptr<TCPClientSocketPool>& tcp_pool, | 60 const scoped_refptr<TCPClientSocketPool>& tcp_pool, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 PoolBase base_; | 184 PoolBase base_; |
| 183 | 185 |
| 184 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 186 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 185 }; | 187 }; |
| 186 | 188 |
| 187 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); | 189 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); |
| 188 | 190 |
| 189 } // namespace net | 191 } // namespace net |
| 190 | 192 |
| 191 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 193 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |