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

Side by Side Diff: net/socket/ssl_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/socket/ssl_client_socket_pool.h" 5 #include "net/socket/ssl_client_socket_pool.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ClientSocketFactory* client_socket_factory, 107 ClientSocketFactory* client_socket_factory,
108 const SSLClientSocketContext& context, 108 const SSLClientSocketContext& context,
109 Delegate* delegate, 109 Delegate* delegate,
110 NetLog* net_log) 110 NetLog* net_log)
111 : ConnectJob( 111 : ConnectJob(
112 group_name, 112 group_name,
113 timeout_duration, 113 timeout_duration,
114 priority, 114 priority,
115 respect_limits, 115 respect_limits,
116 delegate, 116 delegate,
117 NetLogWithSource::Make(net_log, NetLogSourceType::CONNECT_JOB)), 117 NetLogWithSource::Make(net_log, NetLogSourceType::SSL_CONNECT_JOB)),
118 params_(params), 118 params_(params),
119 transport_pool_(transport_pool), 119 transport_pool_(transport_pool),
120 socks_pool_(socks_pool), 120 socks_pool_(socks_pool),
121 http_proxy_pool_(http_proxy_pool), 121 http_proxy_pool_(http_proxy_pool),
122 client_socket_factory_(client_socket_factory), 122 client_socket_factory_(client_socket_factory),
123 context_(context.cert_verifier, 123 context_(context.cert_verifier,
124 context.channel_id_service, 124 context.channel_id_service,
125 context.transport_security_state, 125 context.transport_security_state,
126 context.cert_transparency_verifier, 126 context.cert_transparency_verifier,
127 context.ct_policy_enforcer, 127 context.ct_policy_enforcer,
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 if (base_.CloseOneIdleSocket()) 685 if (base_.CloseOneIdleSocket())
686 return true; 686 return true;
687 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 687 return base_.CloseOneIdleConnectionInHigherLayeredPool();
688 } 688 }
689 689
690 void SSLClientSocketPool::OnSSLConfigChanged() { 690 void SSLClientSocketPool::OnSSLConfigChanged() {
691 FlushWithError(ERR_NETWORK_CHANGED); 691 FlushWithError(ERR_NETWORK_CHANGED);
692 } 692 }
693 693
694 } // namespace net 694 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698