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

Unified Diff: components/network_session_configurator/browser/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 side-by-side diff with in-line comments
Download patch
Index: components/network_session_configurator/browser/network_session_configurator.h
diff --git a/components/network_session_configurator/browser/network_session_configurator.h b/components/network_session_configurator/browser/network_session_configurator.h
new file mode 100644
index 0000000000000000000000000000000000000000..7c7f25df92a1b3e28b51276ca2e05c10a8ad1bc2
--- /dev/null
+++ b/components/network_session_configurator/browser/network_session_configurator.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_NETWORK_SESSION_CONFIGURATOR_BROWSER_NETWORK_SESSION_CONFIGURATOR_H_
+#define COMPONENTS_NETWORK_SESSION_CONFIGURATOR_BROWSER_NETWORK_SESSION_CONFIGURATOR_H_
+
+#include <string>
+
+#include "net/http/http_network_session.h"
+
+namespace base {
+class CommandLine;
+}
+
+namespace network_session_configurator {
+
+// Helper functions to configure HttpNetworkSession::Params based on field
+// trials and command line.
+
+// Parse serialized QUIC version string.
+// Return QUIC_VERSION_UNSUPPORTED on failure.
+net::QuicVersion ParseQuicVersion(const std::string& quic_version);
+
+// Configure |params| based on field trials and command line,
+// and forcing (policy or other command line) arguments.
+void ParseCommandLineAndFieldTrials(const base::CommandLine& command_line,
+ bool is_quic_force_disabled,
+ const std::string& quic_user_agent_id,
+ net::HttpNetworkSession::Params* params);
+
+} // namespace network_session_configurator
+
+#endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_BROWSER_NETWORK_SESSION_CONFIGURATOR_H_

Powered by Google App Engine
This is Rietveld 408576698