OLD | NEW |
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 "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { | 133 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { |
134 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); | 134 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); |
135 pool_.reset(new SSLClientSocketPool( | 135 pool_.reset(new SSLClientSocketPool( |
136 kMaxSockets, | 136 kMaxSockets, |
137 kMaxSocketsPerGroup, | 137 kMaxSocketsPerGroup, |
138 ssl_histograms_.get(), | 138 ssl_histograms_.get(), |
139 NULL /* host_resolver */, | 139 NULL /* host_resolver */, |
140 NULL /* cert_verifier */, | 140 NULL /* cert_verifier */, |
141 NULL /* server_bound_cert_service */, | 141 NULL /* server_bound_cert_service */, |
142 NULL /* transport_security_state */, | 142 NULL /* transport_security_state */, |
| 143 NULL /* cert_transparency_verifier */, |
143 std::string() /* ssl_session_cache_shard */, | 144 std::string() /* ssl_session_cache_shard */, |
144 &socket_factory_, | 145 &socket_factory_, |
145 transport_pool ? &transport_socket_pool_ : NULL, | 146 transport_pool ? &transport_socket_pool_ : NULL, |
146 socks_pool ? &socks_socket_pool_ : NULL, | 147 socks_pool ? &socks_socket_pool_ : NULL, |
147 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, | 148 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, |
148 NULL, | 149 NULL, |
149 NULL)); | 150 NULL)); |
150 } | 151 } |
151 | 152 |
152 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, | 153 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 ssl.channel_id_sent = true; | 930 ssl.channel_id_sent = true; |
930 ssl.SetNextProto(GetParam()); | 931 ssl.SetNextProto(GetParam()); |
931 TestIPPoolingDisabled(&ssl); | 932 TestIPPoolingDisabled(&ssl); |
932 } | 933 } |
933 | 934 |
934 // It would be nice to also test the timeouts in SSLClientSocketPool. | 935 // It would be nice to also test the timeouts in SSLClientSocketPool. |
935 | 936 |
936 } // namespace | 937 } // namespace |
937 | 938 |
938 } // namespace net | 939 } // namespace net |
OLD | NEW |