Chromium Code Reviews| Index: net/http/http_stream_factory.cc |
| =================================================================== |
| --- net/http/http_stream_factory.cc (revision 121685) |
| +++ net/http/http_stream_factory.cc (working copy) |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -82,7 +82,9 @@ |
| AlternateProtocol protocol = ALTERNATE_PROTOCOL_BROKEN; |
| // We skip NPN_SPDY_1 here, because we've rolled the protocol version to 2. |
| - for (int i = NPN_SPDY_2; i < NUM_ALTERNATE_PROTOCOLS; ++i) { |
| + // TODO(rtenneti): add support for SPDY/2.1 (use next_protos_ to determine the |
| + // protocol). |
| + for (int i = NPN_SPDY_2; i <= NPN_SPDY_2; ++i) { |
|
wtc
2012/02/14 20:22:18
Another approach is to use a global variable or co
|
| if (port_protocol_vector[1] == kAlternateProtocolStrings[i]) |
| protocol = static_cast<AlternateProtocol>(i); |
| } |