| 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" |
| 11 #include "net/base/host_mapping_rules.h" | 11 #include "net/base/host_mapping_rules.h" |
| 12 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
| 13 #include "net/http/http_server_properties.h" | 13 #include "net/http/http_server_properties.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 const HostMappingRules* HttpStreamFactory::host_mapping_rules_ = NULL; | 18 const HostMappingRules* HttpStreamFactory::host_mapping_rules_ = NULL; |
| 19 // static | 19 // static |
| 20 const std::string* HttpStreamFactory::next_protos_ = NULL; | 20 std::vector<std::string>* HttpStreamFactory::next_protos_ = NULL; |
| 21 // static | 21 // static |
| 22 bool HttpStreamFactory::spdy_enabled_ = true; | 22 bool HttpStreamFactory::spdy_enabled_ = true; |
| 23 // static | 23 // static |
| 24 bool HttpStreamFactory::use_alternate_protocols_ = false; | 24 bool HttpStreamFactory::use_alternate_protocols_ = false; |
| 25 // static | 25 // static |
| 26 bool HttpStreamFactory::force_spdy_over_ssl_ = true; | 26 bool HttpStreamFactory::force_spdy_over_ssl_ = true; |
| 27 // static | 27 // static |
| 28 bool HttpStreamFactory::force_spdy_always_ = false; | 28 bool HttpStreamFactory::force_spdy_always_ = false; |
| 29 // static | 29 // static |
| 30 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; | 30 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 HttpStreamFactory::HttpStreamFactory() {} | 130 HttpStreamFactory::HttpStreamFactory() {} |
| 131 | 131 |
| 132 // static | 132 // static |
| 133 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { | 133 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { |
| 134 if (!host_mapping_rules_) | 134 if (!host_mapping_rules_) |
| 135 host_mapping_rules_ = new HostMappingRules; | 135 host_mapping_rules_ = new HostMappingRules; |
| 136 return *host_mapping_rules_; | 136 return *host_mapping_rules_; |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace net | 139 } // namespace net |
| OLD | NEW |