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

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

Issue 2914893002: Move some of IOThread's command line logic to network_session_configurator. (Closed)
Patch Set: Fix merge Created 3 years, 6 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698