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