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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 8 years, 3 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: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index df18869fb8d30bc72f5f868c0b8c646345a5ba1b..078a62117c44829c97939aa1943597ade9fddca4 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -652,3 +652,36 @@ void ProfileIOData::set_server_bound_cert_service(
void ProfileIOData::DestroyResourceContext() {
resource_context_.reset();
}
+
+void ProfileIOData::PopulateNetworkSessionParams(
+ const ProfileParams* profile_params,
+ net::HttpNetworkSession::Params* params) const {
+
+ ChromeURLRequestContext* context = main_request_context();
+
+ IOThread* const io_thread = profile_params->io_thread;
+ IOThread::Globals* const globals = io_thread->globals();
+
+ params->host_resolver = context->host_resolver();
+ params->cert_verifier = context->cert_verifier();
+ params->server_bound_cert_service = context->server_bound_cert_service();
+ params->transport_security_state = context->transport_security_state();
+ params->proxy_service = context->proxy_service();
+ params->ssl_session_cache_shard = GetSSLSessionCacheShard();
+ params->ssl_config_service = context->ssl_config_service();
+ params->http_auth_handler_factory = context->http_auth_handler_factory();
+ params->network_delegate = context->network_delegate();
+ params->http_server_properties = context->http_server_properties();
+ params->net_log = context->net_log();
+ params->host_mapping_rules = globals->host_mapping_rules.get();
+ params->ignore_certificate_errors = globals->ignore_certificate_errors;
+ params->http_pipelining_enabled = globals->http_pipelining_enabled;
+ params->testing_fixed_http_port = globals->testing_fixed_http_port;
+ params->testing_fixed_https_port = globals->testing_fixed_https_port;
+
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ if (command_line.HasSwitch(switches::kTrustedSpdyProxy)) {
+ params->trusted_spdy_proxy = command_line.GetSwitchValueASCII(
+ switches::kTrustedSpdyProxy);
+ }
+}
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698