| 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 #include "net/socket/socks_client_socket_pool.h" | 5 #include "net/socket/socks_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "googleurl/src/gurl.h" | |
| 10 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 11 #include "net/socket/client_socket_factory.h" | 10 #include "net/socket/client_socket_factory.h" |
| 12 #include "net/socket/client_socket_handle.h" | 11 #include "net/socket/client_socket_handle.h" |
| 13 #include "net/socket/client_socket_pool_base.h" | 12 #include "net/socket/client_socket_pool_base.h" |
| 14 #include "net/socket/socks5_client_socket.h" | 13 #include "net/socket/socks5_client_socket.h" |
| 15 #include "net/socket/socks_client_socket.h" | 14 #include "net/socket/socks_client_socket.h" |
| 16 #include "net/socket/transport_client_socket_pool.h" | 15 #include "net/socket/transport_client_socket_pool.h" |
| 17 | 16 |
| 18 namespace net { | 17 namespace net { |
| 19 | 18 |
| 20 // TODO(szym): remove unneeded referrer | |
| 21 SOCKSSocketParams::SOCKSSocketParams( | 19 SOCKSSocketParams::SOCKSSocketParams( |
| 22 const scoped_refptr<TransportSocketParams>& proxy_server, | 20 const scoped_refptr<TransportSocketParams>& proxy_server, |
| 23 bool socks_v5, | 21 bool socks_v5, |
| 24 const HostPortPair& host_port_pair, | 22 const HostPortPair& host_port_pair, |
| 25 RequestPriority priority, | 23 RequestPriority priority) |
| 26 const GURL& referrer) | |
| 27 : transport_params_(proxy_server), | 24 : transport_params_(proxy_server), |
| 28 destination_(host_port_pair), | 25 destination_(host_port_pair), |
| 29 socks_v5_(socks_v5) { | 26 socks_v5_(socks_v5) { |
| 30 if (transport_params_) | 27 if (transport_params_) |
| 31 ignore_limits_ = transport_params_->ignore_limits(); | 28 ignore_limits_ = transport_params_->ignore_limits(); |
| 32 else | 29 else |
| 33 ignore_limits_ = false; | 30 ignore_limits_ = false; |
| 34 destination_.set_priority(priority); | 31 destination_.set_priority(priority); |
| 35 } | 32 } |
| 36 | 33 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 275 |
| 279 base::TimeDelta SOCKSClientSocketPool::ConnectionTimeout() const { | 276 base::TimeDelta SOCKSClientSocketPool::ConnectionTimeout() const { |
| 280 return base_.ConnectionTimeout(); | 277 return base_.ConnectionTimeout(); |
| 281 } | 278 } |
| 282 | 279 |
| 283 ClientSocketPoolHistograms* SOCKSClientSocketPool::histograms() const { | 280 ClientSocketPoolHistograms* SOCKSClientSocketPool::histograms() const { |
| 284 return base_.histograms(); | 281 return base_.histograms(); |
| 285 }; | 282 }; |
| 286 | 283 |
| 287 } // namespace net | 284 } // namespace net |
| OLD | NEW |