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

Unified Diff: net/http/http_stream_factory.cc

Issue 9516009: SPDY - disable spdy/2.1 (flow control) by default (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: net/http/http_stream_factory.cc
===================================================================
--- net/http/http_stream_factory.cc (revision 124201)
+++ net/http/http_stream_factory.cc (working copy)
@@ -10,7 +10,6 @@
#include "googleurl/src/gurl.h"
#include "net/base/host_mapping_rules.h"
#include "net/base/host_port_pair.h"
-#include "net/http/http_server_properties.h"
namespace net {
@@ -39,6 +38,9 @@
uint16 HttpStreamFactory::testing_fixed_http_port_ = 0;
// static
uint16 HttpStreamFactory::testing_fixed_https_port_ = 0;
+// static
+AlternateProtocol HttpStreamFactory::highest_supported_alternate_protocol_ =
+ NPN_SPDY_2;
HttpStreamFactory::~HttpStreamFactory() {}
@@ -82,7 +84,7 @@
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) {
+ for (int i = NPN_SPDY_2; i <= highest_supported_alternate_protocol_; ++i) {
if (port_protocol_vector[1] == kAlternateProtocolStrings[i])
protocol = static_cast<AlternateProtocol>(i);
}

Powered by Google App Engine
This is Rietveld 408576698