| 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_stream_factory_impl_job.h" | 5 #include "net/http/http_stream_factory_impl_job.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 &proxy_ssl_config_); | 644 &proxy_ssl_config_); |
| 645 // Disable revocation checking for HTTPS proxies since the revocation | 645 // Disable revocation checking for HTTPS proxies since the revocation |
| 646 // requests are probably going to need to go through the proxy too. | 646 // requests are probably going to need to go through the proxy too. |
| 647 proxy_ssl_config_.rev_checking_enabled = false; | 647 proxy_ssl_config_.rev_checking_enabled = false; |
| 648 } | 648 } |
| 649 if (using_ssl_) { | 649 if (using_ssl_) { |
| 650 InitSSLConfig(origin_, &server_ssl_config_); | 650 InitSSLConfig(origin_, &server_ssl_config_); |
| 651 } | 651 } |
| 652 | 652 |
| 653 if (IsPreconnecting()) { | 653 if (IsPreconnecting()) { |
| 654 return ClientSocketPoolManager::PreconnectSocketsForHttpRequest( | 654 return PreconnectSocketsForHttpRequest( |
| 655 origin_url_, | 655 origin_url_, |
| 656 request_info_.extra_headers, | 656 request_info_.extra_headers, |
| 657 request_info_.load_flags, | 657 request_info_.load_flags, |
| 658 request_info_.priority, | 658 request_info_.priority, |
| 659 session_, | 659 session_, |
| 660 proxy_info_, | 660 proxy_info_, |
| 661 ShouldForceSpdySSL(), | 661 ShouldForceSpdySSL(), |
| 662 want_spdy_over_npn, | 662 want_spdy_over_npn, |
| 663 server_ssl_config_, | 663 server_ssl_config_, |
| 664 proxy_ssl_config_, | 664 proxy_ssl_config_, |
| 665 net_log_, | 665 net_log_, |
| 666 num_streams_); | 666 num_streams_); |
| 667 } else { | 667 } else { |
| 668 return ClientSocketPoolManager::InitSocketHandleForHttpRequest( | 668 return InitSocketHandleForHttpRequest( |
| 669 origin_url_, | 669 origin_url_, |
| 670 request_info_.extra_headers, | 670 request_info_.extra_headers, |
| 671 request_info_.load_flags, | 671 request_info_.load_flags, |
| 672 request_info_.priority, | 672 request_info_.priority, |
| 673 session_, | 673 session_, |
| 674 proxy_info_, | 674 proxy_info_, |
| 675 ShouldForceSpdySSL(), | 675 ShouldForceSpdySSL(), |
| 676 want_spdy_over_npn, | 676 want_spdy_over_npn, |
| 677 server_ssl_config_, | 677 server_ssl_config_, |
| 678 proxy_ssl_config_, | 678 proxy_ssl_config_, |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 if (IsPreconnecting() || !request_) { | 1144 if (IsPreconnecting() || !request_) { |
| 1145 return false; | 1145 return false; |
| 1146 } | 1146 } |
| 1147 if (using_ssl_) { | 1147 if (using_ssl_) { |
| 1148 return false; | 1148 return false; |
| 1149 } | 1149 } |
| 1150 return request_info_.method == "GET" || request_info_.method == "HEAD"; | 1150 return request_info_.method == "GET" || request_info_.method == "HEAD"; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 } // namespace net | 1153 } // namespace net |
| OLD | NEW |