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

Side by Side Diff: components/network_session_configurator/network_session_configurator.h

Issue 2115213002: Disable SPDY/3.1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on https://crrev.com/2129973002. Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Helper functions to configure HttpNetworkSession::Params based on field 5 // Helper functions to configure HttpNetworkSession::Params based on field
6 // trials, policy, and command line. 6 // trials, policy, and command line.
7 7
8 #ifndef COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_H_ 8 #ifndef COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_H_
9 #define COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_H_ 9 #define COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "net/http/http_network_session.h" 14 #include "net/http/http_network_session.h"
15 15
16 namespace network_session_configurator { 16 namespace network_session_configurator {
17 17
18 // Configure |params| based on field trials and policy arguments. 18 // Configure |params| based on field trials and policy arguments.
19 void ParseFieldTrials(bool is_spdy_allowed_by_policy, 19 void ParseFieldTrials(bool is_quic_allowed_by_policy,
20 bool is_quic_allowed_by_policy,
21 const std::string& quic_user_agent_id, 20 const std::string& quic_user_agent_id,
22 net::HttpNetworkSession::Params* params); 21 net::HttpNetworkSession::Params* params);
23 22
24 // Configure |params| based on field trials, policy arguments, 23 // Configure |params| based on field trials, policy arguments,
25 // and command line. 24 // and command line.
26 void ParseFieldTrialsAndCommandLine(bool is_spdy_allowed_by_policy, 25 void ParseFieldTrialsAndCommandLine(bool is_quic_allowed_by_policy,
27 bool is_quic_allowed_by_policy,
28 const std::string& quic_user_agent_id, 26 const std::string& quic_user_agent_id,
29 net::HttpNetworkSession::Params* params); 27 net::HttpNetworkSession::Params* params);
30 28
31 } // namespace network_session_configurator 29 } // namespace network_session_configurator
32 30
33 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_ H_ 31 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698