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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "chrome/browser/services/gcm/gcm_profile_service.h" | 68 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
69 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 69 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
70 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" | 70 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" |
71 #include "chrome/browser/sessions/session_service_factory.h" | 71 #include "chrome/browser/sessions/session_service_factory.h" |
72 #include "chrome/browser/signin/signin_manager_factory.h" | 72 #include "chrome/browser/signin/signin_manager_factory.h" |
73 #include "chrome/browser/signin/signin_ui_util.h" | 73 #include "chrome/browser/signin/signin_ui_util.h" |
74 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" | 74 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" |
75 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" | 75 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" |
76 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 76 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
77 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 77 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
78 #include "chrome/browser/ui/zoom/zoom_event_manager.h" | |
79 #include "chrome/common/chrome_constants.h" | 78 #include "chrome/common/chrome_constants.h" |
80 #include "chrome/common/chrome_paths_internal.h" | 79 #include "chrome/common/chrome_paths_internal.h" |
81 #include "chrome/common/chrome_switches.h" | 80 #include "chrome/common/chrome_switches.h" |
82 #include "chrome/common/chrome_version_info.h" | 81 #include "chrome/common/chrome_version_info.h" |
83 #include "chrome/common/pref_names.h" | 82 #include "chrome/common/pref_names.h" |
84 #include "chrome/common/url_constants.h" | 83 #include "chrome/common/url_constants.h" |
85 #include "chrome/grit/chromium_strings.h" | 84 #include "chrome/grit/chromium_strings.h" |
86 #include "components/bookmarks/browser/bookmark_model.h" | 85 #include "components/bookmarks/browser/bookmark_model.h" |
87 #include "components/content_settings/core/browser/host_content_settings_map.h" | 86 #include "components/content_settings/core/browser/host_content_settings_map.h" |
88 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" | 87 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" |
89 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 88 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
90 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" | 89 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" |
91 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 90 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
92 #include "components/domain_reliability/monitor.h" | 91 #include "components/domain_reliability/monitor.h" |
93 #include "components/domain_reliability/service.h" | 92 #include "components/domain_reliability/service.h" |
94 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 93 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
95 #include "components/metrics/metrics_service.h" | 94 #include "components/metrics/metrics_service.h" |
96 #include "components/pref_registry/pref_registry_syncable.h" | 95 #include "components/pref_registry/pref_registry_syncable.h" |
97 #include "components/signin/core/browser/signin_manager.h" | 96 #include "components/signin/core/browser/signin_manager.h" |
98 #include "components/startup_metric_utils/startup_metric_utils.h" | 97 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 98 #include "components/ui/zoom/zoom_event_manager.h" |
99 #include "components/url_fixer/url_fixer.h" | 99 #include "components/url_fixer/url_fixer.h" |
100 #include "components/user_prefs/user_prefs.h" | 100 #include "components/user_prefs/user_prefs.h" |
101 #include "content/public/browser/browser_thread.h" | 101 #include "content/public/browser/browser_thread.h" |
102 #include "content/public/browser/dom_storage_context.h" | 102 #include "content/public/browser/dom_storage_context.h" |
103 #include "content/public/browser/notification_service.h" | 103 #include "content/public/browser/notification_service.h" |
104 #include "content/public/browser/render_process_host.h" | 104 #include "content/public/browser/render_process_host.h" |
105 #include "content/public/browser/storage_partition.h" | 105 #include "content/public/browser/storage_partition.h" |
106 #include "content/public/browser/url_data_source.h" | 106 #include "content/public/browser/url_data_source.h" |
107 #include "content/public/browser/user_metrics.h" | 107 #include "content/public/browser/user_metrics.h" |
108 #include "content/public/common/content_constants.h" | 108 #include "content/public/common/content_constants.h" |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 } | 846 } |
847 | 847 |
848 Profile::ProfileType ProfileImpl::GetProfileType() const { | 848 Profile::ProfileType ProfileImpl::GetProfileType() const { |
849 return REGULAR_PROFILE; | 849 return REGULAR_PROFILE; |
850 } | 850 } |
851 | 851 |
852 scoped_ptr<content::ZoomLevelDelegate> | 852 scoped_ptr<content::ZoomLevelDelegate> |
853 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { | 853 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { |
854 return make_scoped_ptr(new chrome::ChromeZoomLevelPrefs( | 854 return make_scoped_ptr(new chrome::ChromeZoomLevelPrefs( |
855 GetPrefs(), GetPath(), partition_path, | 855 GetPrefs(), GetPath(), partition_path, |
856 ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); | 856 ui_zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); |
857 } | 857 } |
858 | 858 |
859 base::FilePath ProfileImpl::GetPath() const { | 859 base::FilePath ProfileImpl::GetPath() const { |
860 return path_; | 860 return path_; |
861 } | 861 } |
862 | 862 |
863 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { | 863 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { |
864 return JsonPrefStore::GetTaskRunnerForFile( | 864 return JsonPrefStore::GetTaskRunnerForFile( |
865 GetPath(), BrowserThread::GetBlockingPool()); | 865 GetPath(), BrowserThread::GetBlockingPool()); |
866 } | 866 } |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1416 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
1417 domain_reliability::DomainReliabilityService* service = | 1417 domain_reliability::DomainReliabilityService* service = |
1418 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1418 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1419 GetForBrowserContext(this); | 1419 GetForBrowserContext(this); |
1420 if (!service) | 1420 if (!service) |
1421 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1421 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1422 | 1422 |
1423 return service->CreateMonitor( | 1423 return service->CreateMonitor( |
1424 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1424 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
1425 } | 1425 } |
OLD | NEW |