Lines Matching refs:command_line

12 #include "base/command_line.h"
170 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
175 if (command_line.HasSwitch(switches::kHostResolverParallelism)) {
177 command_line.GetSwitchValueASCII(switches::kHostResolverParallelism);
189 if (command_line.HasSwitch(switches::kHostResolverRetryAttempts)) {
191 command_line.GetSwitchValueASCII(switches::kHostResolverRetryAttempts);
212 if (command_line.HasSwitch(switches::kEnableIPv6)) {
216 } else if (command_line.HasSwitch(switches::kDisableIPv6)) {
223 if (!command_line.HasSwitch(switches::kHostResolverRules))
229 command_line.GetSwitchValueASCII(switches::kHostResolverRules));
293 int GetSwitchValueAsInt(const CommandLine& command_line,
296 if (!base::StringToInt(command_line.GetSwitchValueASCII(switch_name),
554 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
577 if (command_line.HasSwitch(switches::kEnableClientHints))
581 if (command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling))
606 if (command_line.HasSwitch(switches::kCertificateTransparencyLog)) {
607 std::string switch_value = command_line.GetSwitchValueASCII(
653 if (command_line.HasSwitch(switches::kHostRules)) {
656 command_line.GetSwitchValueASCII(switches::kHostRules));
659 if (command_line.HasSwitch(switches::kEnableSSLConnectJobWaiting))
661 if (command_line.HasSwitch(switches::kIgnoreCertificateErrors))
663 if (command_line.HasSwitch(switches::kTestingFixedHttpPort)) {
665 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpPort);
667 if (command_line.HasSwitch(switches::kTestingFixedHttpsPort)) {
669 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpsPort);
671 ConfigureQuic(command_line);
672 if (command_line.HasSwitch(
676 InitializeNetworkOptions(command_line);
769 void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
777 if (command_line.HasSwitch(switches::kTrustedSpdyProxy)) {
779 command_line.GetSwitchValueASCII(switches::kTrustedSpdyProxy));
781 if (command_line.HasSwitch(switches::kIgnoreUrlFetcherCertRequests))
784 if (command_line.HasSwitch(switches::kUseSpdy)) {
786 command_line.GetSwitchValueASCII(switches::kUseSpdy);
788 } else if (command_line.HasSwitch(switches::kEnableSpdy4)) {
791 } else if (command_line.HasSwitch(switches::kDisableSpdy31)) {
794 } else if (command_line.HasSwitch(switches::kEnableNpnHttpOnly)) {
797 } else if (command_line.HasSwitch(switches::kEnableWebSocketOverSpdy)) {
807 if (command_line.HasSwitch(switches::kEnableWebSocketOverSpdy))
811 ConfigureTCPFastOpen(command_line);
819 void IOThread::ConfigureTCPFastOpen(const CommandLine& command_line) {
825 command_line.HasSwitch(switches::kEnableTcpFastOpen);
1087 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
1094 command_line,
1120 void IOThread::ConfigureQuic(const CommandLine& command_line) {
1131 ConfigureQuicGlobals(command_line, group, params, globals_);
1172 const base::CommandLine& command_line,
1176 bool enable_quic = ShouldEnableQuic(command_line, quic_trial_group);
1180 ShouldEnableQuicTimeBasedLossDetection(command_line, quic_trial_group,
1187 ShouldEnableQuicPortSelection(command_line));
1189 GetQuicConnectionOptions(command_line, quic_trial_params);
1190 if (ShouldEnableQuicPacing(command_line, quic_trial_group,
1196 size_t max_packet_length = GetQuicMaxPacketLength(command_line,
1211 net::QuicVersion version = GetQuicVersion(command_line, quic_trial_params);
1219 GetAlternateProtocolProbabilityThreshold(command_line, quic_trial_params);
1226 if (command_line.HasSwitch(switches::kOriginToForceQuicOn)) {
1229 command_line.GetSwitchValueASCII(switches::kOriginToForceQuicOn));
1236 bool IOThread::ShouldEnableQuic(const CommandLine& command_line,
1238 if (command_line.HasSwitch(switches::kDisableQuic))
1241 if (command_line.HasSwitch(switches::kEnableQuic))
1249 const CommandLine& command_line) {
1250 if (command_line.HasSwitch(switches::kDisableQuicPortSelection))
1253 if (command_line.HasSwitch(switches::kEnableQuicPortSelection))
1260 const CommandLine& command_line,
1263 if (command_line.HasSwitch(switches::kEnableQuicPacing))
1266 if (command_line.HasSwitch(switches::kDisableQuicPacing))
1278 const CommandLine& command_line,
1280 if (command_line.HasSwitch(switches::kQuicConnectionOptions)) {
1282 command_line.GetSwitchValueASCII(switches::kQuicConnectionOptions));
1319 const base::CommandLine& command_line,
1322 if (command_line.HasSwitch(
1325 command_line.GetSwitchValueASCII(
1331 if (command_line.HasSwitch(switches::kEnableQuic)) {
1345 const CommandLine& command_line,
1348 if (command_line.HasSwitch(switches::kEnableQuicTimeBasedLossDetection))
1351 if (command_line.HasSwitch(switches::kDisableQuicTimeBasedLossDetection))
1382 const CommandLine& command_line,
1385 if (command_line.HasSwitch(switches::kQuicMaxPacketLength)) {
1388 command_line.GetSwitchValueASCII(switches::kQuicMaxPacketLength),
1424 const CommandLine& command_line,
1426 if (command_line.HasSwitch(switches::kQuicVersion)) {
1428 command_line.GetSwitchValueASCII(switches::kQuicVersion));