Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Helper functions to configure HttpNetworkSession::Params based on field | |
| 6 // trials, policy, and command line. | |
| 7 | |
| 8 #ifndef COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_H_ | |
| 9 #define COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_H_ | |
| 10 | |
| 11 #include <string> | |
| 12 | |
| 13 #include "base/command_line.h" | |
| 14 #include "net/http/http_network_session.h" | |
| 15 | |
| 16 namespace network_session_configurator { | |
| 17 | |
| 18 // Configure |params| based on field trials and policy arguments. | |
| 19 void ParseFieldTrials(bool is_spdy_allowed_by_policy, | |
| 20 bool is_quic_allowed_by_policy, | |
| 21 const std::string& quic_user_agent_id, | |
| 22 net::HttpNetworkSession::Params* params); | |
| 23 | |
| 24 // Configure |params| based on field trials, policy arguments, | |
| 25 // and command line. | |
| 26 void ParseFieldTrialsAndCommandLine(bool is_spdy_allowed_by_policy, | |
| 27 bool is_quic_allowed_by_policy, | |
| 28 const std::string& quic_user_agent_id, | |
| 29 net::HttpNetworkSession::Params* params); | |
| 30 | |
| 31 // Returns true if QUIC should be enabled for data reduction proxy, either | |
| 32 // as a result of a field trial or a command line flag. | |
| 33 bool ShouldEnableQuicForDataReductionProxy( | |
| 34 const base::CommandLine& command_line); | |
| 35 | |
| 36 } // namespace network_session_configurator | |
| 37 | |
| 38 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_ H_ | |
|
Ryan Hamilton
2016/04/21 21:15:25
It's too bad this name is so long.
| |
| OLD | NEW |