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_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 CapturePreconnectsHttpProxySocketPool; | 426 CapturePreconnectsHttpProxySocketPool; |
427 typedef CapturePreconnectsSocketPool<SOCKSClientSocketPool> | 427 typedef CapturePreconnectsSocketPool<SOCKSClientSocketPool> |
428 CapturePreconnectsSOCKSSocketPool; | 428 CapturePreconnectsSOCKSSocketPool; |
429 typedef CapturePreconnectsSocketPool<SSLClientSocketPool> | 429 typedef CapturePreconnectsSocketPool<SSLClientSocketPool> |
430 CapturePreconnectsSSLSocketPool; | 430 CapturePreconnectsSSLSocketPool; |
431 | 431 |
432 template <typename ParentPool> | 432 template <typename ParentPool> |
433 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool( | 433 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool( |
434 HostResolver* host_resolver, | 434 HostResolver* host_resolver, |
435 CertVerifier* /* cert_verifier */) | 435 CertVerifier* /* cert_verifier */) |
436 : ParentPool(0, 0, host_resolver, nullptr, nullptr), last_num_streams_(-1) { | 436 : ParentPool(0, 0, host_resolver, nullptr, nullptr, nullptr), |
437 } | 437 last_num_streams_(-1) {} |
438 | 438 |
439 template <> | 439 template <> |
440 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool( | 440 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool( |
441 HostResolver* /* host_resolver */, | 441 HostResolver* /* host_resolver */, |
442 CertVerifier* /* cert_verifier */) | 442 CertVerifier* /* cert_verifier */) |
443 : HttpProxyClientSocketPool(0, 0, nullptr, nullptr, nullptr), | 443 : HttpProxyClientSocketPool(0, 0, nullptr, nullptr, nullptr), |
444 last_num_streams_(-1) { | 444 last_num_streams_(-1) { |
445 } | 445 } |
446 | 446 |
447 template <> | 447 template <> |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); | 2042 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); |
2043 | 2043 |
2044 // Make sure there is no orphaned job. it is already canceled. | 2044 // Make sure there is no orphaned job. it is already canceled. |
2045 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( | 2045 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( |
2046 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); | 2046 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); |
2047 } | 2047 } |
2048 | 2048 |
2049 } // namespace | 2049 } // namespace |
2050 | 2050 |
2051 } // namespace net | 2051 } // namespace net |
OLD | NEW |