diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-06 22:47:53 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-06 22:47:53 +0000 |
commit | 48e5cfcc957f3adfea6d630c3b6956275f9eb76f (patch) | |
tree | ef1429986d95a001a771e4c41d6e7073f2d434f8 | |
parent | defd0f9f13216f813ece88e992f45329cdfc181d (diff) | |
download | chromium_src-48e5cfcc957f3adfea6d630c3b6956275f9eb76f.zip chromium_src-48e5cfcc957f3adfea6d630c3b6956275f9eb76f.tar.gz chromium_src-48e5cfcc957f3adfea6d630c3b6956275f9eb76f.tar.bz2 |
[HTTP2] Turn on HTTP/2 for fetch_client
BUG=265815
R=rch@chromium.org
Review URL: https://codereview.chromium.org/22474003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216010 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/tools/fetch/fetch_client.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc index f0bec35..12fae24 100644 --- a/net/tools/fetch/fetch_client.cc +++ b/net/tools/fetch/fetch_client.cc @@ -25,6 +25,7 @@ #include "net/http/http_network_session.h" #include "net/http/http_request_info.h" #include "net/http/http_server_properties_impl.h" +#include "net/http/http_stream_factory.h" #include "net/http/http_transaction.h" #include "net/http/transport_security_state.h" #include "net/proxy/proxy_service.h" @@ -143,6 +144,8 @@ int main(int argc, char** argv) { // Do work here. base::MessageLoop loop(base::MessageLoop::TYPE_IO); + net::HttpStreamFactory::EnableNpnHttp2Draft04(); + scoped_ptr<net::HostResolver> host_resolver( net::HostResolver::CreateDefaultResolver(NULL)); scoped_ptr<net::CertVerifier> cert_verifier( |