| Index: net/http/http_proxy_client_socket_pool.cc
|
| diff --git a/net/http/http_proxy_client_socket_pool.cc b/net/http/http_proxy_client_socket_pool.cc
|
| index f0f8795a08a73b8705eb8a821c3a4d708144bd07..16a8eea34575d3a040366a3ecdd539f7a2cb2dd6 100644
|
| --- a/net/http/http_proxy_client_socket_pool.cc
|
| +++ b/net/http/http_proxy_client_socket_pool.cc
|
| @@ -51,11 +51,6 @@ HttpProxySocketParams::HttpProxySocketParams(
|
| proxy_delegate_(proxy_delegate) {
|
| DCHECK((transport_params.get() == NULL && ssl_params.get() != NULL) ||
|
| (transport_params.get() != NULL && ssl_params.get() == NULL));
|
| - if (transport_params_.get()) {
|
| - ignore_limits_ = transport_params->ignore_limits();
|
| - } else {
|
| - ignore_limits_ = ssl_params->ignore_limits();
|
| - }
|
| }
|
|
|
| const HostResolver::RequestInfo& HttpProxySocketParams::destination() const {
|
| @@ -81,6 +76,7 @@ static const int kHttpProxyConnectJobTimeoutInSeconds = 30;
|
| HttpProxyConnectJob::HttpProxyConnectJob(
|
| const std::string& group_name,
|
| RequestPriority priority,
|
| + ClientSocketPool::IgnoreLimits ignore_limits,
|
| const scoped_refptr<HttpProxySocketParams>& params,
|
| const base::TimeDelta& timeout_duration,
|
| TransportClientSocketPool* transport_pool,
|
| @@ -90,11 +86,13 @@ HttpProxyConnectJob::HttpProxyConnectJob(
|
| : ConnectJob(group_name,
|
| base::TimeDelta() /* The socket takes care of timeouts */,
|
| priority,
|
| + ignore_limits,
|
| delegate,
|
| BoundNetLog::Make(net_log, NetLog::SOURCE_CONNECT_JOB)),
|
| client_socket_(new HttpProxyClientSocketWrapper(
|
| group_name,
|
| priority,
|
| + ignore_limits,
|
| timeout_duration,
|
| base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds),
|
| transport_pool,
|
| @@ -177,14 +175,9 @@ HttpProxyClientSocketPool::HttpProxyConnectJobFactory::NewConnectJob(
|
| const std::string& group_name,
|
| const PoolBase::Request& request,
|
| ConnectJob::Delegate* delegate) const {
|
| - return scoped_ptr<ConnectJob>(new HttpProxyConnectJob(group_name,
|
| - request.priority(),
|
| - request.params(),
|
| - ConnectionTimeout(),
|
| - transport_pool_,
|
| - ssl_pool_,
|
| - delegate,
|
| - net_log_));
|
| + return scoped_ptr<ConnectJob>(new HttpProxyConnectJob(
|
| + group_name, request.priority(), request.ignore_limits(), request.params(),
|
| + ConnectionTimeout(), transport_pool_, ssl_pool_, delegate, net_log_));
|
| }
|
|
|
| base::TimeDelta
|
| @@ -217,15 +210,18 @@ HttpProxyClientSocketPool::HttpProxyClientSocketPool(
|
| HttpProxyClientSocketPool::~HttpProxyClientSocketPool() {
|
| }
|
|
|
| -int HttpProxyClientSocketPool::RequestSocket(
|
| - const std::string& group_name, const void* socket_params,
|
| - RequestPriority priority, ClientSocketHandle* handle,
|
| - const CompletionCallback& callback, const BoundNetLog& net_log) {
|
| +int HttpProxyClientSocketPool::RequestSocket(const std::string& group_name,
|
| + const void* socket_params,
|
| + RequestPriority priority,
|
| + IgnoreLimits ignore_limits,
|
| + ClientSocketHandle* handle,
|
| + const CompletionCallback& callback,
|
| + const BoundNetLog& net_log) {
|
| const scoped_refptr<HttpProxySocketParams>* casted_socket_params =
|
| static_cast<const scoped_refptr<HttpProxySocketParams>*>(socket_params);
|
|
|
| return base_.RequestSocket(group_name, *casted_socket_params, priority,
|
| - handle, callback, net_log);
|
| + ignore_limits, handle, callback, net_log);
|
| }
|
|
|
| void HttpProxyClientSocketPool::RequestSockets(
|
|
|