diff options
author | bnc <bnc@chromium.org> | 2016-02-02 07:42:22 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-02 15:43:36 +0000 |
commit | 3f0118e3ef62194270b131e988079b82c0e26b7d (patch) | |
tree | 2b7b0b1f41044ca5d39c43dcbff6337dfe025ffa /ios/crnet | |
parent | dbc8b3a47abdf44216021417c0ce2f7b12109898 (diff) | |
download | chromium_src-3f0118e3ef62194270b131e988079b82c0e26b7d.zip chromium_src-3f0118e3ef62194270b131e988079b82c0e26b7d.tar.gz chromium_src-3f0118e3ef62194270b131e988079b82c0e26b7d.tar.bz2 |
Use Boolean members to control HTTP/2 and SPDY/3.1.
Add Boolean members to IOThread::Globals and HttpNetworkSession::Params to
toggle HTTP/2 and SPDY/3.1 support instead of a NextProtoVector. This way
clients do not have to have a notion of NextProto, "next_proto.h" includes
can be removed from lots of files, and NextProto helper functions can be
removed. Also default values are easier to define.
This CL intends to preserve behavior and default values.
BUG=329681
Review URL: https://codereview.chromium.org/1651123002
Cr-Commit-Position: refs/heads/master@{#372951}
Diffstat (limited to 'ios/crnet')
-rw-r--r-- | ios/crnet/crnet_environment.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm index 7861322..939836a 100644 --- a/ios/crnet/crnet_environment.mm +++ b/ios/crnet/crnet_environment.mm @@ -47,7 +47,6 @@ #include "net/log/write_to_file_net_log_observer.h" #include "net/proxy/proxy_service.h" #include "net/sdch/sdch_owner.h" -#include "net/socket/next_proto.h" #include "net/ssl/channel_id_service.h" #include "net/ssl/default_channel_id_store.h" #include "net/ssl/ssl_config_service_defaults.h" @@ -439,8 +438,8 @@ void CrNetEnvironment::InitializeOnNetworkThread() { params.network_delegate = main_context_->network_delegate(); params.http_server_properties = main_context_->http_server_properties(); params.net_log = main_context_->net_log(); - params.next_protos = - net::NextProtosWithSpdyAndQuic(spdy_enabled(), quic_enabled()); + params.enable_spdy31 = spdy_enabled(); + params.enable_http2 = spdy_enabled(); params.parse_alternative_services = false; params.enable_quic = quic_enabled(); params.alternative_service_probability_threshold = |