OLD | NEW |
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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 globals_->system_network_delegate.reset(new ChromeNetworkDelegate( | 396 globals_->system_network_delegate.reset(new ChromeNetworkDelegate( |
397 extension_event_router_forwarder_, | 397 extension_event_router_forwarder_, |
398 NULL, | 398 NULL, |
399 NULL, | 399 NULL, |
400 NULL, | 400 NULL, |
401 NULL, | 401 NULL, |
402 &system_enable_referrers_)); | 402 &system_enable_referrers_)); |
403 globals_->host_resolver.reset( | 403 globals_->host_resolver.reset( |
404 CreateGlobalHostResolver(net_log_)); | 404 CreateGlobalHostResolver(net_log_)); |
405 globals_->cert_verifier.reset(net::CertVerifier::CreateDefault()); | 405 globals_->cert_verifier.reset(net::CertVerifier::CreateDefault()); |
406 globals_->transport_security_state.reset(new net::TransportSecurityState("")); | 406 globals_->transport_security_state.reset(new net::TransportSecurityState()); |
407 globals_->ssl_config_service = GetSSLConfigService(); | 407 globals_->ssl_config_service = GetSSLConfigService(); |
408 globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory( | 408 globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory( |
409 globals_->host_resolver.get())); | 409 globals_->host_resolver.get())); |
410 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl); | 410 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl); |
411 // For the ProxyScriptFetcher, we use a direct ProxyService. | 411 // For the ProxyScriptFetcher, we use a direct ProxyService. |
412 globals_->proxy_script_fetcher_proxy_service.reset( | 412 globals_->proxy_script_fetcher_proxy_service.reset( |
413 net::ProxyService::CreateDirectWithNetLog(net_log_)); | 413 net::ProxyService::CreateDirectWithNetLog(net_log_)); |
414 // In-memory cookie store. | 414 // In-memory cookie store. |
415 globals_->system_cookie_store = new net::CookieMonster(NULL, NULL); | 415 globals_->system_cookie_store = new net::CookieMonster(NULL, NULL); |
416 // In-memory server bound cert store. | 416 // In-memory server bound cert store. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 new net::HttpNetworkLayer( | 611 new net::HttpNetworkLayer( |
612 new net::HttpNetworkSession(system_params))); | 612 new net::HttpNetworkSession(system_params))); |
613 globals_->system_ftp_transaction_factory.reset( | 613 globals_->system_ftp_transaction_factory.reset( |
614 new net::FtpNetworkLayer(globals_->host_resolver.get())); | 614 new net::FtpNetworkLayer(globals_->host_resolver.get())); |
615 globals_->system_request_context = | 615 globals_->system_request_context = |
616 ConstructSystemRequestContext(globals_, net_log_); | 616 ConstructSystemRequestContext(globals_, net_log_); |
617 | 617 |
618 sdch_manager_->set_sdch_fetcher( | 618 sdch_manager_->set_sdch_fetcher( |
619 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); | 619 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); |
620 } | 620 } |
OLD | NEW |