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/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/net/about_protocol_handler.h" | 37 #include "chrome/browser/net/about_protocol_handler.h" |
38 #include "chrome/browser/net/chrome_cookie_notification_details.h" | 38 #include "chrome/browser/net/chrome_cookie_notification_details.h" |
39 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" | 39 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" |
40 #include "chrome/browser/net/chrome_http_user_agent_settings.h" | 40 #include "chrome/browser/net/chrome_http_user_agent_settings.h" |
41 #include "chrome/browser/net/chrome_net_log.h" | 41 #include "chrome/browser/net/chrome_net_log.h" |
42 #include "chrome/browser/net/chrome_network_delegate.h" | 42 #include "chrome/browser/net/chrome_network_delegate.h" |
43 #include "chrome/browser/net/evicted_domain_cookie_counter.h" | 43 #include "chrome/browser/net/evicted_domain_cookie_counter.h" |
44 #include "chrome/browser/net/load_time_stats.h" | 44 #include "chrome/browser/net/load_time_stats.h" |
45 #include "chrome/browser/net/proxy_service_factory.h" | 45 #include "chrome/browser/net/proxy_service_factory.h" |
46 #include "chrome/browser/net/resource_prefetch_predictor_observer.h" | 46 #include "chrome/browser/net/resource_prefetch_predictor_observer.h" |
47 #include "chrome/browser/net/transport_security_persister.h" | |
48 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 47 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
49 #include "chrome/browser/policy/url_blacklist_manager.h" | 48 #include "chrome/browser/policy/url_blacklist_manager.h" |
50 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 49 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
51 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" | 50 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" |
52 #include "chrome/browser/profiles/profile.h" | 51 #include "chrome/browser/profiles/profile.h" |
53 #include "chrome/browser/profiles/profile_manager.h" | 52 #include "chrome/browser/profiles/profile_manager.h" |
54 #include "chrome/browser/signin/signin_names_io_thread.h" | 53 #include "chrome/browser/signin/signin_names_io_thread.h" |
55 #include "chrome/common/chrome_paths.h" | 54 #include "chrome/common/chrome_paths.h" |
56 #include "chrome/common/chrome_switches.h" | 55 #include "chrome/common/chrome_switches.h" |
57 #include "chrome/common/pref_names.h" | 56 #include "chrome/common/pref_names.h" |
58 #include "chrome/common/url_constants.h" | 57 #include "chrome/common/url_constants.h" |
59 #include "components/startup_metric_utils/startup_metric_utils.h" | 58 #include "components/startup_metric_utils/startup_metric_utils.h" |
60 #include "content/public/browser/browser_thread.h" | 59 #include "content/public/browser/browser_thread.h" |
61 #include "content/public/browser/host_zoom_map.h" | 60 #include "content/public/browser/host_zoom_map.h" |
62 #include "content/public/browser/notification_service.h" | 61 #include "content/public/browser/notification_service.h" |
63 #include "content/public/browser/resource_context.h" | 62 #include "content/public/browser/resource_context.h" |
64 #include "extensions/browser/info_map.h" | 63 #include "extensions/browser/info_map.h" |
65 #include "extensions/common/constants.h" | 64 #include "extensions/common/constants.h" |
66 #include "net/cert/cert_verifier.h" | 65 #include "net/cert/cert_verifier.h" |
67 #include "net/cookies/canonical_cookie.h" | 66 #include "net/cookies/canonical_cookie.h" |
68 #include "net/cookies/cookie_monster.h" | 67 #include "net/cookies/cookie_monster.h" |
69 #include "net/http/http_transaction_factory.h" | 68 #include "net/http/http_transaction_factory.h" |
70 #include "net/http/http_util.h" | 69 #include "net/http/http_util.h" |
| 70 #include "net/http/transport_security_persister.h" |
71 #include "net/proxy/proxy_config_service_fixed.h" | 71 #include "net/proxy/proxy_config_service_fixed.h" |
72 #include "net/proxy/proxy_script_fetcher_impl.h" | 72 #include "net/proxy/proxy_script_fetcher_impl.h" |
73 #include "net/proxy/proxy_service.h" | 73 #include "net/proxy/proxy_service.h" |
74 #include "net/ssl/client_cert_store.h" | 74 #include "net/ssl/client_cert_store.h" |
75 #include "net/ssl/client_cert_store_impl.h" | 75 #include "net/ssl/client_cert_store_impl.h" |
76 #include "net/ssl/server_bound_cert_service.h" | 76 #include "net/ssl/server_bound_cert_service.h" |
77 #include "net/url_request/data_protocol_handler.h" | 77 #include "net/url_request/data_protocol_handler.h" |
78 #include "net/url_request/file_protocol_handler.h" | 78 #include "net/url_request/file_protocol_handler.h" |
79 #include "net/url_request/ftp_protocol_handler.h" | 79 #include "net/url_request/ftp_protocol_handler.h" |
80 #include "net/url_request/protocol_intercept_job_factory.h" | 80 #include "net/url_request/protocol_intercept_job_factory.h" |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 proxy_service_.reset( | 813 proxy_service_.reset( |
814 ProxyServiceFactory::CreateProxyService( | 814 ProxyServiceFactory::CreateProxyService( |
815 io_thread->net_log(), | 815 io_thread->net_log(), |
816 io_thread_globals->proxy_script_fetcher_context.get(), | 816 io_thread_globals->proxy_script_fetcher_context.get(), |
817 io_thread_globals->system_network_delegate.get(), | 817 io_thread_globals->system_network_delegate.get(), |
818 profile_params_->proxy_config_service.release(), | 818 profile_params_->proxy_config_service.release(), |
819 command_line)); | 819 command_line)); |
820 | 820 |
821 transport_security_state_.reset(new net::TransportSecurityState()); | 821 transport_security_state_.reset(new net::TransportSecurityState()); |
822 transport_security_persister_.reset( | 822 transport_security_persister_.reset( |
823 new TransportSecurityPersister( | 823 new net::TransportSecurityPersister( |
824 transport_security_state_.get(), | 824 transport_security_state_.get(), |
825 profile_params_->path, | 825 profile_params_->path, |
826 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 826 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
827 is_incognito())); | 827 is_incognito())); |
828 | 828 |
829 // Take ownership over these parameters. | 829 // Take ownership over these parameters. |
830 cookie_settings_ = profile_params_->cookie_settings; | 830 cookie_settings_ = profile_params_->cookie_settings; |
831 host_content_settings_map_ = profile_params_->host_content_settings_map; | 831 host_content_settings_map_ = profile_params_->host_content_settings_map; |
832 #if defined(ENABLE_NOTIFICATIONS) | 832 #if defined(ENABLE_NOTIFICATIONS) |
833 notification_service_ = profile_params_->notification_service; | 833 notification_service_ = profile_params_->notification_service; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 void ProfileIOData::SetCookieSettingsForTesting( | 1000 void ProfileIOData::SetCookieSettingsForTesting( |
1001 CookieSettings* cookie_settings) { | 1001 CookieSettings* cookie_settings) { |
1002 DCHECK(!cookie_settings_.get()); | 1002 DCHECK(!cookie_settings_.get()); |
1003 cookie_settings_ = cookie_settings; | 1003 cookie_settings_ = cookie_settings; |
1004 } | 1004 } |
1005 | 1005 |
1006 void ProfileIOData::set_signin_names_for_testing( | 1006 void ProfileIOData::set_signin_names_for_testing( |
1007 SigninNamesOnIOThread* signin_names) { | 1007 SigninNamesOnIOThread* signin_names) { |
1008 signin_names_.reset(signin_names); | 1008 signin_names_.reset(signin_names); |
1009 } | 1009 } |
OLD | NEW |