| 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.h" | 5 #include "net/http/http_stream_factory.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // static | 26 // static |
| 27 bool HttpStreamFactory::use_alternate_protocols_ = false; | 27 bool HttpStreamFactory::use_alternate_protocols_ = false; |
| 28 // static | 28 // static |
| 29 bool HttpStreamFactory::force_spdy_over_ssl_ = true; | 29 bool HttpStreamFactory::force_spdy_over_ssl_ = true; |
| 30 // static | 30 // static |
| 31 bool HttpStreamFactory::force_spdy_always_ = false; | 31 bool HttpStreamFactory::force_spdy_always_ = false; |
| 32 // static | 32 // static |
| 33 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; | 33 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; |
| 34 // static | 34 // static |
| 35 bool HttpStreamFactory::ignore_certificate_errors_ = false; | 35 bool HttpStreamFactory::ignore_certificate_errors_ = false; |
| 36 // static |
| 37 bool HttpStreamFactory::http_pipelining_enabled_ = false; |
| 36 | 38 |
| 37 HttpStreamFactory::~HttpStreamFactory() {} | 39 HttpStreamFactory::~HttpStreamFactory() {} |
| 38 | 40 |
| 39 // static | 41 // static |
| 40 void HttpStreamFactory::ResetStaticSettingsToInit() { | 42 void HttpStreamFactory::ResetStaticSettingsToInit() { |
| 41 // WARNING: These must match the initializers above. | 43 // WARNING: These must match the initializers above. |
| 42 delete host_mapping_rules_; | 44 delete host_mapping_rules_; |
| 43 delete next_protos_; | 45 delete next_protos_; |
| 44 delete forced_spdy_exclusions_; | 46 delete forced_spdy_exclusions_; |
| 45 host_mapping_rules_ = NULL; | 47 host_mapping_rules_ = NULL; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 HttpStreamFactory::HttpStreamFactory() {} | 151 HttpStreamFactory::HttpStreamFactory() {} |
| 150 | 152 |
| 151 // static | 153 // static |
| 152 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { | 154 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { |
| 153 if (!host_mapping_rules_) | 155 if (!host_mapping_rules_) |
| 154 host_mapping_rules_ = new HostMappingRules; | 156 host_mapping_rules_ = new HostMappingRules; |
| 155 return *host_mapping_rules_; | 157 return *host_mapping_rules_; |
| 156 } | 158 } |
| 157 | 159 |
| 158 } // namespace net | 160 } // namespace net |
| OLD | NEW |