| Index: net/http/http_stream_factory.cc
|
| diff --git a/net/http/http_stream_factory.cc b/net/http/http_stream_factory.cc
|
| index bd30444cbdd48ff2edf598f2f99cc1df6937f2c1..7b4e8c080d07fe380ff3d649f93fa3ae0419ac2f 100644
|
| --- a/net/http/http_stream_factory.cc
|
| +++ b/net/http/http_stream_factory.cc
|
| @@ -169,6 +169,17 @@ void HttpStreamFactory::EnableNpnSpdy3() {
|
| }
|
|
|
| // static
|
| +void HttpStreamFactory::EnableNpnSpdy31() {
|
| + set_use_alternate_protocols(true);
|
| + std::vector<std::string> next_protos;
|
| + next_protos.push_back("http/1.1");
|
| + next_protos.push_back("spdy/2");
|
| + next_protos.push_back("spdy/3");
|
| + next_protos.push_back("spdy/3.1");
|
| + SetNextProtos(next_protos);
|
| +}
|
| +
|
| +// static
|
| void HttpStreamFactory::SetNextProtos(const std::vector<std::string>& value) {
|
| if (!next_protos_)
|
| next_protos_ = new std::vector<std::string>;
|
| @@ -187,6 +198,8 @@ void HttpStreamFactory::SetNextProtos(const std::vector<std::string>& value) {
|
| enabled_protocols_[NPN_SPDY_2] = true;
|
| } else if (value[i] == "spdy/3") {
|
| enabled_protocols_[NPN_SPDY_3] = true;
|
| + } else if (value[i] == "spdy/3.1") {
|
| + enabled_protocols_[NPN_SPDY_3_1] = true;
|
| } else if (value[i] == "quic/1") {
|
| enabled_protocols_[QUIC_1] = true;
|
| }
|
|
|