Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: net/http/http_stream_factory.cc

Issue 13190010: Switch the QUIC alternate protocol string from "quic/1" to "quic", since QUIC can do its own versio… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698