OLD | NEW |
(Empty) | |
| 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 |
| 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 } // namespace network_session_configurator |
| 32 |
| 33 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_
H_ |
OLD | NEW |