OLD | NEW |
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 "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 pool_.reset(new SSLClientSocketPool( | 91 pool_.reset(new SSLClientSocketPool( |
92 kMaxSockets, | 92 kMaxSockets, |
93 kMaxSocketsPerGroup, | 93 kMaxSocketsPerGroup, |
94 ssl_histograms_.get(), | 94 ssl_histograms_.get(), |
95 NULL /* host_resolver */, | 95 NULL /* host_resolver */, |
96 NULL /* cert_verifier */, | 96 NULL /* cert_verifier */, |
97 NULL /* origin_bound_cert_service */, | 97 NULL /* origin_bound_cert_service */, |
98 NULL /* dnsrr_resolver */, | 98 NULL /* dnsrr_resolver */, |
99 NULL /* dns_cert_checker */, | 99 NULL /* dns_cert_checker */, |
100 NULL /* ssl_host_info_factory */, | 100 NULL /* ssl_host_info_factory */, |
| 101 "" /* ssl_session_cache_shard */, |
101 &socket_factory_, | 102 &socket_factory_, |
102 transport_pool ? &transport_socket_pool_ : NULL, | 103 transport_pool ? &transport_socket_pool_ : NULL, |
103 socks_pool ? &socks_socket_pool_ : NULL, | 104 socks_pool ? &socks_socket_pool_ : NULL, |
104 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, | 105 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, |
105 NULL, | 106 NULL, |
106 NULL)); | 107 NULL)); |
107 } | 108 } |
108 | 109 |
109 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, | 110 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, |
110 bool want_spdy_over_npn) { | 111 bool want_spdy_over_npn) { |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 EXPECT_FALSE(session_->spdy_session_pool()->HasSession(test_hosts[1].pair)); | 826 EXPECT_FALSE(session_->spdy_session_pool()->HasSession(test_hosts[1].pair)); |
826 | 827 |
827 session_->spdy_session_pool()->CloseAllSessions(); | 828 session_->spdy_session_pool()->CloseAllSessions(); |
828 } | 829 } |
829 | 830 |
830 // It would be nice to also test the timeouts in SSLClientSocketPool. | 831 // It would be nice to also test the timeouts in SSLClientSocketPool. |
831 | 832 |
832 } // namespace | 833 } // namespace |
833 | 834 |
834 } // namespace net | 835 } // namespace net |
OLD | NEW |