OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 11 matching lines...) Expand all Loading... |
22 bool HttpStreamFactory::enabled_protocols_[NUM_ALTERNATE_PROTOCOLS]; | 22 bool HttpStreamFactory::enabled_protocols_[NUM_ALTERNATE_PROTOCOLS]; |
23 // static | 23 // static |
24 bool HttpStreamFactory::spdy_enabled_ = true; | 24 bool HttpStreamFactory::spdy_enabled_ = true; |
25 // static | 25 // static |
26 bool HttpStreamFactory::use_alternate_protocols_ = false; | 26 bool HttpStreamFactory::use_alternate_protocols_ = false; |
27 // static | 27 // static |
28 bool HttpStreamFactory::force_spdy_over_ssl_ = true; | 28 bool HttpStreamFactory::force_spdy_over_ssl_ = true; |
29 // static | 29 // static |
30 bool HttpStreamFactory::force_spdy_always_ = false; | 30 bool HttpStreamFactory::force_spdy_always_ = false; |
31 // static | 31 // static |
| 32 int HttpStreamFactory::force_quic_port_ = 0; |
| 33 // static |
32 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; | 34 std::list<HostPortPair>* HttpStreamFactory::forced_spdy_exclusions_ = NULL; |
33 | 35 |
34 HttpStreamFactory::~HttpStreamFactory() {} | 36 HttpStreamFactory::~HttpStreamFactory() {} |
35 | 37 |
36 // static | 38 // static |
37 void HttpStreamFactory::ResetStaticSettingsToInit() { | 39 void HttpStreamFactory::ResetStaticSettingsToInit() { |
38 // WARNING: These must match the initializers above. | 40 // WARNING: These must match the initializers above. |
39 delete next_protos_; | 41 delete next_protos_; |
40 delete forced_spdy_exclusions_; | 42 delete forced_spdy_exclusions_; |
41 next_protos_ = NULL; | 43 next_protos_ = NULL; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 } else if (value[i] == "spdy/3") { | 190 } else if (value[i] == "spdy/3") { |
189 enabled_protocols_[NPN_SPDY_3] = true; | 191 enabled_protocols_[NPN_SPDY_3] = true; |
190 } | 192 } |
191 } | 193 } |
192 enabled_protocols_[NPN_SPDY_1] = false; | 194 enabled_protocols_[NPN_SPDY_1] = false; |
193 } | 195 } |
194 | 196 |
195 HttpStreamFactory::HttpStreamFactory() {} | 197 HttpStreamFactory::HttpStreamFactory() {} |
196 | 198 |
197 } // namespace net | 199 } // namespace net |
OLD | NEW |