| 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/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // versions in next_protos and kAlternateProtocolStrings. | 193 // versions in next_protos and kAlternateProtocolStrings. |
| 194 for (uint32 i = 0; i < value.size(); ++i) { | 194 for (uint32 i = 0; i < value.size(); ++i) { |
| 195 if (value[i] == "spdy/1") { | 195 if (value[i] == "spdy/1") { |
| 196 enabled_protocols_[NPN_SPDY_1] = true; | 196 enabled_protocols_[NPN_SPDY_1] = true; |
| 197 } else if (value[i] == "spdy/2") { | 197 } else if (value[i] == "spdy/2") { |
| 198 enabled_protocols_[NPN_SPDY_2] = true; | 198 enabled_protocols_[NPN_SPDY_2] = true; |
| 199 } else if (value[i] == "spdy/3") { | 199 } else if (value[i] == "spdy/3") { |
| 200 enabled_protocols_[NPN_SPDY_3] = true; | 200 enabled_protocols_[NPN_SPDY_3] = true; |
| 201 } else if (value[i] == "spdy/3.1") { | 201 } else if (value[i] == "spdy/3.1") { |
| 202 enabled_protocols_[NPN_SPDY_3_1] = true; | 202 enabled_protocols_[NPN_SPDY_3_1] = true; |
| 203 } else if (value[i] == "quic/1") { | 203 } else if (value[i] == "quic") { |
| 204 enabled_protocols_[QUIC_1] = true; | 204 enabled_protocols_[QUIC] = true; |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 // TODO(rch): Remove all support for spdy/1. | 207 // TODO(rch): Remove all support for spdy/1. |
| 208 enabled_protocols_[NPN_SPDY_1] = false; | 208 enabled_protocols_[NPN_SPDY_1] = false; |
| 209 } | 209 } |
| 210 | 210 |
| 211 HttpStreamFactory::HttpStreamFactory() {} | 211 HttpStreamFactory::HttpStreamFactory() {} |
| 212 | 212 |
| 213 } // namespace net | 213 } // namespace net |
| OLD | NEW |