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/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "components/policy/core/common/policy_service.h" | 46 #include "components/policy/core/common/policy_service.h" |
47 #include "content/public/browser/browser_thread.h" | 47 #include "content/public/browser/browser_thread.h" |
48 #include "content/public/browser/cookie_store_factory.h" | 48 #include "content/public/browser/cookie_store_factory.h" |
49 #include "net/base/host_mapping_rules.h" | 49 #include "net/base/host_mapping_rules.h" |
50 #include "net/base/net_util.h" | 50 #include "net/base/net_util.h" |
51 #include "net/base/network_time_notifier.h" | 51 #include "net/base/network_time_notifier.h" |
52 #include "net/base/sdch_manager.h" | 52 #include "net/base/sdch_manager.h" |
53 #include "net/cert/cert_verifier.h" | 53 #include "net/cert/cert_verifier.h" |
54 #include "net/cert/ct_known_logs.h" | 54 #include "net/cert/ct_known_logs.h" |
55 #include "net/cert/ct_verifier.h" | 55 #include "net/cert/ct_verifier.h" |
| 56 #include "net/cookies/cookie_store.h" |
56 #include "net/dns/host_cache.h" | 57 #include "net/dns/host_cache.h" |
57 #include "net/dns/host_resolver.h" | 58 #include "net/dns/host_resolver.h" |
58 #include "net/dns/mapped_host_resolver.h" | 59 #include "net/dns/mapped_host_resolver.h" |
59 #include "net/ftp/ftp_network_layer.h" | 60 #include "net/ftp/ftp_network_layer.h" |
60 #include "net/http/http_auth_filter.h" | 61 #include "net/http/http_auth_filter.h" |
61 #include "net/http/http_auth_handler_factory.h" | 62 #include "net/http/http_auth_handler_factory.h" |
62 #include "net/http/http_network_layer.h" | 63 #include "net/http/http_network_layer.h" |
63 #include "net/http/http_server_properties_impl.h" | 64 #include "net/http/http_server_properties_impl.h" |
64 #include "net/proxy/proxy_config_service.h" | 65 #include "net/proxy/proxy_config_service.h" |
65 #include "net/proxy/proxy_script_fetcher_impl.h" | 66 #include "net/proxy/proxy_script_fetcher_impl.h" |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 DataReductionProxySettings::GetDataReductionProxies(); | 588 DataReductionProxySettings::GetDataReductionProxies(); |
588 } | 589 } |
589 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 590 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
590 globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory( | 591 globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory( |
591 globals_->host_resolver.get())); | 592 globals_->host_resolver.get())); |
592 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl()); | 593 globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl()); |
593 // For the ProxyScriptFetcher, we use a direct ProxyService. | 594 // For the ProxyScriptFetcher, we use a direct ProxyService. |
594 globals_->proxy_script_fetcher_proxy_service.reset( | 595 globals_->proxy_script_fetcher_proxy_service.reset( |
595 net::ProxyService::CreateDirectWithNetLog(net_log_)); | 596 net::ProxyService::CreateDirectWithNetLog(net_log_)); |
596 // In-memory cookie store. | 597 // In-memory cookie store. |
597 globals_->system_cookie_store = content::CreateInMemoryCookieStore(NULL); | 598 globals_->system_cookie_store = |
| 599 content::CreateCookieStore(content::CookieStoreConfig()); |
598 // In-memory server bound cert store. | 600 // In-memory server bound cert store. |
599 globals_->system_server_bound_cert_service.reset( | 601 globals_->system_server_bound_cert_service.reset( |
600 new net::ServerBoundCertService( | 602 new net::ServerBoundCertService( |
601 new net::DefaultServerBoundCertStore(NULL), | 603 new net::DefaultServerBoundCertStore(NULL), |
602 base::WorkerPool::GetTaskRunner(true))); | 604 base::WorkerPool::GetTaskRunner(true))); |
603 globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService()); | 605 globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService()); |
604 globals_->host_mapping_rules.reset(new net::HostMappingRules()); | 606 globals_->host_mapping_rules.reset(new net::HostMappingRules()); |
605 globals_->http_user_agent_settings.reset( | 607 globals_->http_user_agent_settings.reset( |
606 new BasicHttpUserAgentSettings(std::string())); | 608 new BasicHttpUserAgentSettings(std::string())); |
607 if (command_line.HasSwitch(switches::kHostRules)) { | 609 if (command_line.HasSwitch(switches::kHostRules)) { |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 std::string version_flag = | 1151 std::string version_flag = |
1150 command_line.GetSwitchValueASCII(switches::kQuicVersion); | 1152 command_line.GetSwitchValueASCII(switches::kQuicVersion); |
1151 for (size_t i = 0; i < supported_versions.size(); ++i) { | 1153 for (size_t i = 0; i < supported_versions.size(); ++i) { |
1152 net::QuicVersion version = supported_versions[i]; | 1154 net::QuicVersion version = supported_versions[i]; |
1153 if (net::QuicVersionToString(version) == version_flag) { | 1155 if (net::QuicVersionToString(version) == version_flag) { |
1154 return version; | 1156 return version; |
1155 } | 1157 } |
1156 } | 1158 } |
1157 return net::QUIC_VERSION_UNSUPPORTED; | 1159 return net::QUIC_VERSION_UNSUPPORTED; |
1158 } | 1160 } |
OLD | NEW |