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 12 matching lines...) Expand all Loading... |
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; |
31 // static | 31 // static |
32 bool HttpStreamFactory::ignore_certificate_errors_ = false; | 32 bool HttpStreamFactory::ignore_certificate_errors_ = false; |
| 33 // static |
| 34 bool HttpStreamFactory::http_pipelining_enabled_ = false; |
33 | 35 |
34 HttpStreamFactory::~HttpStreamFactory() {} | 36 HttpStreamFactory::~HttpStreamFactory() {} |
35 | 37 |
36 void HttpStreamFactory::ProcessAlternateProtocol( | 38 void HttpStreamFactory::ProcessAlternateProtocol( |
37 HttpServerProperties* http_server_properties, | 39 HttpServerProperties* http_server_properties, |
38 const std::string& alternate_protocol_str, | 40 const std::string& alternate_protocol_str, |
39 const HostPortPair& http_host_port_pair) { | 41 const HostPortPair& http_host_port_pair) { |
40 std::vector<std::string> port_protocol_vector; | 42 std::vector<std::string> port_protocol_vector; |
41 base::SplitString(alternate_protocol_str, ':', &port_protocol_vector); | 43 base::SplitString(alternate_protocol_str, ':', &port_protocol_vector); |
42 if (port_protocol_vector.size() != 2) { | 44 if (port_protocol_vector.size() != 2) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 HttpStreamFactory::HttpStreamFactory() {} | 132 HttpStreamFactory::HttpStreamFactory() {} |
131 | 133 |
132 // static | 134 // static |
133 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { | 135 const HostMappingRules& HttpStreamFactory::host_mapping_rules() { |
134 if (!host_mapping_rules_) | 136 if (!host_mapping_rules_) |
135 host_mapping_rules_ = new HostMappingRules; | 137 host_mapping_rules_ = new HostMappingRules; |
136 return *host_mapping_rules_; | 138 return *host_mapping_rules_; |
137 } | 139 } |
138 | 140 |
139 } // namespace net | 141 } // namespace net |
OLD | NEW |