Index: net/http/http_stream_factory.cc |
=================================================================== |
--- net/http/http_stream_factory.cc (revision 128403) |
+++ net/http/http_stream_factory.cc (working copy) |
@@ -149,6 +149,25 @@ |
} |
// 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::EnableSPDY3() { |
+ 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); |
+} |
+ |
+// static |
void HttpStreamFactory::SetNextProtos(const std::vector<std::string>& value) { |
if (!next_protos_) |
next_protos_ = new std::vector<std::string>; |