| 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 "net/http/http_network_session.h" | |
| 14 | |
| 15 namespace network_session_configurator { | |
| 16 | |
| 17 // Parse serialized QUIC version string. | |
| 18 // Return QUIC_VERSION_UNSUPPORTED on failure. | |
| 19 net::QuicVersion ParseQuicVersion(const std::string& quic_version); | |
| 20 | |
| 21 // Configure |params| based on field trials | |
| 22 // and forcing (policy or command line) arguments. | |
| 23 void ParseFieldTrials(bool is_quic_force_disabled, | |
| 24 bool is_quic_force_enabled, | |
| 25 const std::string& quic_user_agent_id, | |
| 26 net::HttpNetworkSession::Params* params); | |
| 27 | |
| 28 } // namespace network_session_configurator | |
| 29 | |
| 30 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_NETWORK_SESSION_CONFIGURATOR_
H_ | |
| OLD | NEW |