Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: net/http/http_proxy_client_socket_pool.cc

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 timeout_ = max_pool_timeout + 353 timeout_ = max_pool_timeout +
354 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds); 354 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds);
355 } 355 }
356 356
357 357
358 ConnectJob* 358 ConnectJob*
359 HttpProxyClientSocketPool::HttpProxyConnectJobFactory::NewConnectJob( 359 HttpProxyClientSocketPool::HttpProxyConnectJobFactory::NewConnectJob(
360 const std::string& group_name, 360 const std::string& group_name,
361 const PoolBase::Request& request, 361 const PoolBase::Request& request,
362 ConnectJob::Delegate* delegate) const { 362 ConnectJob::Delegate* delegate) const {
363 return new HttpProxyConnectJob(group_name, request.params(), 363 return new HttpProxyConnectJob(group_name, request.params(),
364 ConnectionTimeout(), tcp_pool_, ssl_pool_, 364 ConnectionTimeout(), tcp_pool_, ssl_pool_,
Mike Belshe 2011/04/06 18:32:53 nit: I don't think we need this.
365 host_resolver_, delegate, net_log_); 365 host_resolver_, delegate, net_log_);
366 } 366 }
367 367
368 HttpProxyClientSocketPool::HttpProxyClientSocketPool( 368 HttpProxyClientSocketPool::HttpProxyClientSocketPool(
369 int max_sockets, 369 int max_sockets,
370 int max_sockets_per_group, 370 int max_sockets_per_group,
371 ClientSocketPoolHistograms* histograms, 371 ClientSocketPoolHistograms* histograms,
372 HostResolver* host_resolver, 372 HostResolver* host_resolver,
373 TCPClientSocketPool* tcp_pool, 373 TCPClientSocketPool* tcp_pool,
374 SSLClientSocketPool* ssl_pool, 374 SSLClientSocketPool* ssl_pool,
375 NetLog* net_log) 375 NetLog* net_log)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 base::TimeDelta HttpProxyClientSocketPool::ConnectionTimeout() const { 466 base::TimeDelta HttpProxyClientSocketPool::ConnectionTimeout() const {
467 return base_.ConnectionTimeout(); 467 return base_.ConnectionTimeout();
468 } 468 }
469 469
470 ClientSocketPoolHistograms* HttpProxyClientSocketPool::histograms() const { 470 ClientSocketPoolHistograms* HttpProxyClientSocketPool::histograms() const {
471 return base_.histograms(); 471 return base_.histograms();
472 } 472 }
473 473
474 } // namespace net 474 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698