OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 template<typename ParentPool> | 558 template<typename ParentPool> |
559 CaptureGroupNameSocketPool<ParentPool>::CaptureGroupNameSocketPool( | 559 CaptureGroupNameSocketPool<ParentPool>::CaptureGroupNameSocketPool( |
560 HostResolver* host_resolver, | 560 HostResolver* host_resolver, |
561 CertVerifier* /* cert_verifier */) | 561 CertVerifier* /* cert_verifier */) |
562 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL) {} | 562 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL) {} |
563 | 563 |
564 template<> | 564 template<> |
565 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool( | 565 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool( |
566 HostResolver* host_resolver, | 566 HostResolver* host_resolver, |
567 CertVerifier* /* cert_verifier */) | 567 CertVerifier* /* cert_verifier */) |
568 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL) {} | 568 : HttpProxyClientSocketPool(0, |
| 569 0, |
| 570 NULL, |
| 571 host_resolver, |
| 572 NULL, |
| 573 NULL, |
| 574 base::Callback<void(const HostPortPair&, |
| 575 HttpRequestHeaders*)>(), |
| 576 NULL) {} |
569 | 577 |
570 template <> | 578 template <> |
571 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( | 579 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( |
572 HostResolver* host_resolver, | 580 HostResolver* host_resolver, |
573 CertVerifier* cert_verifier) | 581 CertVerifier* cert_verifier) |
574 : SSLClientSocketPool(0, | 582 : SSLClientSocketPool(0, |
575 0, | 583 0, |
576 NULL, | 584 NULL, |
577 host_resolver, | 585 host_resolver, |
578 cert_verifier, | 586 cert_verifier, |
(...skipping 12625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13204 EXPECT_EQ(ERR_IO_PENDING, rv); | 13212 EXPECT_EQ(ERR_IO_PENDING, rv); |
13205 | 13213 |
13206 rv = callback.WaitForResult(); | 13214 rv = callback.WaitForResult(); |
13207 EXPECT_EQ(ERR_CONNECTION_RESET, rv); | 13215 EXPECT_EQ(ERR_CONNECTION_RESET, rv); |
13208 | 13216 |
13209 const HttpResponseInfo* response = trans->GetResponseInfo(); | 13217 const HttpResponseInfo* response = trans->GetResponseInfo(); |
13210 EXPECT_TRUE(response == NULL); | 13218 EXPECT_TRUE(response == NULL); |
13211 } | 13219 } |
13212 | 13220 |
13213 } // namespace net | 13221 } // namespace net |
OLD | NEW |