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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 981723008: Unwind the SSL connection holdback experiment and remove related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename & reformat Created 5 years, 9 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
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 } 428 }
429 429
430 IOThread::Globals:: 430 IOThread::Globals::
431 SystemRequestContextLeakChecker::~SystemRequestContextLeakChecker() { 431 SystemRequestContextLeakChecker::~SystemRequestContextLeakChecker() {
432 if (globals_->system_request_context.get()) 432 if (globals_->system_request_context.get())
433 globals_->system_request_context->AssertNoURLRequests(); 433 globals_->system_request_context->AssertNoURLRequests();
434 } 434 }
435 435
436 IOThread::Globals::Globals() 436 IOThread::Globals::Globals()
437 : system_request_context_leak_checker(this), 437 : system_request_context_leak_checker(this),
438 enable_ssl_connect_job_waiting(false),
439 ignore_certificate_errors(false), 438 ignore_certificate_errors(false),
440 use_stale_while_revalidate(false), 439 use_stale_while_revalidate(false),
441 testing_fixed_http_port(0), 440 testing_fixed_http_port(0),
442 testing_fixed_https_port(0), 441 testing_fixed_https_port(0),
443 enable_user_alternate_protocol_ports(false) { 442 enable_user_alternate_protocol_ports(false) {
444 } 443 }
445 444
446 IOThread::Globals::~Globals() {} 445 IOThread::Globals::~Globals() {}
447 446
448 // |local_state| is passed in explicitly in order to (1) reduce implicit 447 // |local_state| is passed in explicitly in order to (1) reduce implicit
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService()); 721 globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService());
723 globals_->host_mapping_rules.reset(new net::HostMappingRules()); 722 globals_->host_mapping_rules.reset(new net::HostMappingRules());
724 globals_->http_user_agent_settings.reset( 723 globals_->http_user_agent_settings.reset(
725 new net::StaticHttpUserAgentSettings(std::string(), GetUserAgent())); 724 new net::StaticHttpUserAgentSettings(std::string(), GetUserAgent()));
726 if (command_line.HasSwitch(switches::kHostRules)) { 725 if (command_line.HasSwitch(switches::kHostRules)) {
727 TRACE_EVENT_BEGIN0("startup", "IOThread::InitAsync:SetRulesFromString"); 726 TRACE_EVENT_BEGIN0("startup", "IOThread::InitAsync:SetRulesFromString");
728 globals_->host_mapping_rules->SetRulesFromString( 727 globals_->host_mapping_rules->SetRulesFromString(
729 command_line.GetSwitchValueASCII(switches::kHostRules)); 728 command_line.GetSwitchValueASCII(switches::kHostRules));
730 TRACE_EVENT_END0("startup", "IOThread::InitAsync:SetRulesFromString"); 729 TRACE_EVENT_END0("startup", "IOThread::InitAsync:SetRulesFromString");
731 } 730 }
732 if (command_line.HasSwitch(switches::kEnableSSLConnectJobWaiting))
733 globals_->enable_ssl_connect_job_waiting = true;
734 if (command_line.HasSwitch(switches::kIgnoreCertificateErrors)) 731 if (command_line.HasSwitch(switches::kIgnoreCertificateErrors))
735 globals_->ignore_certificate_errors = true; 732 globals_->ignore_certificate_errors = true;
736 globals_->use_stale_while_revalidate = 733 globals_->use_stale_while_revalidate =
737 IsStaleWhileRevalidateEnabled(command_line); 734 IsStaleWhileRevalidateEnabled(command_line);
738 if (command_line.HasSwitch(switches::kTestingFixedHttpPort)) { 735 if (command_line.HasSwitch(switches::kTestingFixedHttpPort)) {
739 globals_->testing_fixed_http_port = 736 globals_->testing_fixed_http_port =
740 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpPort); 737 GetSwitchValueAsInt(command_line, switches::kTestingFixedHttpPort);
741 } 738 }
742 if (command_line.HasSwitch(switches::kTestingFixedHttpsPort)) { 739 if (command_line.HasSwitch(switches::kTestingFixedHttpsPort)) {
743 globals_->testing_fixed_https_port = 740 globals_->testing_fixed_https_port =
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 params->cert_verifier = globals.cert_verifier.get(); 1081 params->cert_verifier = globals.cert_verifier.get();
1085 params->cert_policy_enforcer = globals.cert_policy_enforcer.get(); 1082 params->cert_policy_enforcer = globals.cert_policy_enforcer.get();
1086 params->channel_id_service = globals.system_channel_id_service.get(); 1083 params->channel_id_service = globals.system_channel_id_service.get();
1087 params->transport_security_state = globals.transport_security_state.get(); 1084 params->transport_security_state = globals.transport_security_state.get();
1088 params->ssl_config_service = globals.ssl_config_service.get(); 1085 params->ssl_config_service = globals.ssl_config_service.get();
1089 params->http_auth_handler_factory = globals.http_auth_handler_factory.get(); 1086 params->http_auth_handler_factory = globals.http_auth_handler_factory.get();
1090 params->http_server_properties = 1087 params->http_server_properties =
1091 globals.http_server_properties->GetWeakPtr(); 1088 globals.http_server_properties->GetWeakPtr();
1092 params->network_delegate = globals.system_network_delegate.get(); 1089 params->network_delegate = globals.system_network_delegate.get();
1093 params->host_mapping_rules = globals.host_mapping_rules.get(); 1090 params->host_mapping_rules = globals.host_mapping_rules.get();
1094 params->enable_ssl_connect_job_waiting =
1095 globals.enable_ssl_connect_job_waiting;
1096 params->ignore_certificate_errors = globals.ignore_certificate_errors; 1091 params->ignore_certificate_errors = globals.ignore_certificate_errors;
1097 params->use_stale_while_revalidate = globals.use_stale_while_revalidate; 1092 params->use_stale_while_revalidate = globals.use_stale_while_revalidate;
1098 params->testing_fixed_http_port = globals.testing_fixed_http_port; 1093 params->testing_fixed_http_port = globals.testing_fixed_http_port;
1099 params->testing_fixed_https_port = globals.testing_fixed_https_port; 1094 params->testing_fixed_https_port = globals.testing_fixed_https_port;
1100 globals.enable_tcp_fast_open_for_ssl.CopyToIfSet( 1095 globals.enable_tcp_fast_open_for_ssl.CopyToIfSet(
1101 &params->enable_tcp_fast_open_for_ssl); 1096 &params->enable_tcp_fast_open_for_ssl);
1102 1097
1103 globals.initial_max_spdy_concurrent_streams.CopyToIfSet( 1098 globals.initial_max_spdy_concurrent_streams.CopyToIfSet(
1104 &params->spdy_initial_max_concurrent_streams); 1099 &params->spdy_initial_max_concurrent_streams);
1105 globals.force_spdy_single_domain.CopyToIfSet( 1100 globals.force_spdy_single_domain.CopyToIfSet(
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); 1516 net::QuicVersionVector supported_versions = net::QuicSupportedVersions();
1522 for (size_t i = 0; i < supported_versions.size(); ++i) { 1517 for (size_t i = 0; i < supported_versions.size(); ++i) {
1523 net::QuicVersion version = supported_versions[i]; 1518 net::QuicVersion version = supported_versions[i];
1524 if (net::QuicVersionToString(version) == quic_version) { 1519 if (net::QuicVersionToString(version) == quic_version) {
1525 return version; 1520 return version;
1526 } 1521 }
1527 } 1522 }
1528 1523
1529 return net::QUIC_VERSION_UNSUPPORTED; 1524 return net::QUIC_VERSION_UNSUPPORTED;
1530 } 1525 }
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698