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

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

Issue 2537373002: Use different source types for each ConnectJob subclass. (Closed)
Patch Set: backwards compat Created 4 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 TransportClientSocketPool* transport_pool, 84 TransportClientSocketPool* transport_pool,
85 SSLClientSocketPool* ssl_pool, 85 SSLClientSocketPool* ssl_pool,
86 Delegate* delegate, 86 Delegate* delegate,
87 NetLog* net_log) 87 NetLog* net_log)
88 : ConnectJob( 88 : ConnectJob(
89 group_name, 89 group_name,
90 base::TimeDelta() /* The socket takes care of timeouts */, 90 base::TimeDelta() /* The socket takes care of timeouts */,
91 priority, 91 priority,
92 respect_limits, 92 respect_limits,
93 delegate, 93 delegate,
94 NetLogWithSource::Make(net_log, NetLogSourceType::CONNECT_JOB)), 94 NetLogWithSource::Make(net_log,
95 NetLogSourceType::HTTP_PROXY_CONNECT_JOB)),
95 client_socket_(new HttpProxyClientSocketWrapper( 96 client_socket_(new HttpProxyClientSocketWrapper(
96 group_name, 97 group_name,
97 priority, 98 priority,
98 respect_limits, 99 respect_limits,
99 timeout_duration, 100 timeout_duration,
100 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds), 101 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds),
101 transport_pool, 102 transport_pool,
102 ssl_pool, 103 ssl_pool,
103 params->transport_params(), 104 params->transport_params(),
104 params->ssl_params(), 105 params->ssl_params(),
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 base_.RemoveHigherLayeredPool(higher_pool); 314 base_.RemoveHigherLayeredPool(higher_pool);
314 } 315 }
315 316
316 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { 317 bool HttpProxyClientSocketPool::CloseOneIdleConnection() {
317 if (base_.CloseOneIdleSocket()) 318 if (base_.CloseOneIdleSocket())
318 return true; 319 return true;
319 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 320 return base_.CloseOneIdleConnectionInHigherLayeredPool();
320 } 321 }
321 322
322 } // namespace net 323 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698