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

Unified Diff: net/http/http_stream_factory.cc

Issue 10005041: Remove SPDY 2.1 support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove references to deleted flags from chrome/browser Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_stream_factory.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory.cc
diff --git a/net/http/http_stream_factory.cc b/net/http/http_stream_factory.cc
index aff2d09bef62a1dc86fe5bf5111d961363b8197e..2d87bc73527459c6d5ee2385f3afeb3a7d56875f 100644
--- a/net/http/http_stream_factory.cc
+++ b/net/http/http_stream_factory.cc
@@ -169,20 +169,10 @@ void HttpStreamFactory::EnableNpnHttpOnly() {
}
// static
-void HttpStreamFactory::EnableFlowControl() {
- std::vector<std::string> next_protos;
- next_protos.push_back("http/1.1");
- next_protos.push_back("spdy/2");
- next_protos.push_back("spdy/2.1");
- SetNextProtos(next_protos);
-}
-
-// static
void HttpStreamFactory::EnableNpnSpdy3() {
std::vector<std::string> next_protos;
next_protos.push_back("http/1.1");
next_protos.push_back("spdy/2");
- next_protos.push_back("spdy/2.1");
next_protos.push_back("spdy/3");
SetNextProtos(next_protos);
}
@@ -204,8 +194,6 @@ void HttpStreamFactory::SetNextProtos(const std::vector<std::string>& value) {
enabled_protocols_[NPN_SPDY_1] = true;
} else if (value[i] == "spdy/2") {
enabled_protocols_[NPN_SPDY_2] = true;
- } else if (value[i] == "spdy/2.1") {
- enabled_protocols_[NPN_SPDY_21] = true;
} else if (value[i] == "spdy/3") {
enabled_protocols_[NPN_SPDY_3] = true;
}
« no previous file with comments | « net/http/http_stream_factory.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698