OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_network_layer.h" | 5 #include "net/http/http_network_layer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_split.h" | 8 #include "base/string_split.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "net/http/http_network_session.h" | 10 #include "net/http/http_network_session.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 HttpAlternateProtocols::PortProtocolPair pair; | 251 HttpAlternateProtocols::PortProtocolPair pair; |
252 pair.port = 443; | 252 pair.port = 443; |
253 pair.protocol = HttpAlternateProtocols::NPN_SPDY_2; | 253 pair.protocol = HttpAlternateProtocols::NPN_SPDY_2; |
254 HttpAlternateProtocols::ForceAlternateProtocol(pair); | 254 HttpAlternateProtocols::ForceAlternateProtocol(pair); |
255 } else if (option.empty() && it == spdy_options.begin()) { | 255 } else if (option.empty() && it == spdy_options.begin()) { |
256 continue; | 256 continue; |
257 } else { | 257 } else { |
258 LOG(DFATAL) << "Unrecognized spdy option: " << option; | 258 LOG(DFATAL) << "Unrecognized spdy option: " << option; |
259 } | 259 } |
260 } | 260 } |
261 | |
262 // TODO(willchan): Re-enable SPDY after a canary release goes out | |
263 // with SPDY off. | |
264 HttpStreamFactory::set_spdy_enabled(false); | |
265 } | 261 } |
266 | |
267 } // namespace net | 262 } // namespace net |
OLD | NEW |