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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "base/threading/sequenced_worker_pool.h" | 29 #include "base/threading/sequenced_worker_pool.h" |
30 #include "base/threading/thread_restrictions.h" | 30 #include "base/threading/thread_restrictions.h" |
31 #include "base/trace_event/trace_event.h" | 31 #include "base/trace_event/trace_event.h" |
32 #include "base/version.h" | 32 #include "base/version.h" |
33 #include "build/build_config.h" | 33 #include "build/build_config.h" |
34 #include "chrome/browser/background/background_contents_service_factory.h" | 34 #include "chrome/browser/background/background_contents_service_factory.h" |
35 #include "chrome/browser/background_sync/background_sync_controller_factory.h" | 35 #include "chrome/browser/background_sync/background_sync_controller_factory.h" |
36 #include "chrome/browser/background_sync/background_sync_controller_impl.h" | 36 #include "chrome/browser/background_sync/background_sync_controller_impl.h" |
37 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 37 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
38 #include "chrome/browser/browser_process.h" | 38 #include "chrome/browser/browser_process.h" |
| 39 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
| 40 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_fac
tory.h" |
39 #include "chrome/browser/chrome_notification_types.h" | 41 #include "chrome/browser/chrome_notification_types.h" |
40 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 42 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
41 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 43 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
42 #include "chrome/browser/dom_distiller/profile_utils.h" | 44 #include "chrome/browser/dom_distiller/profile_utils.h" |
43 #include "chrome/browser/domain_reliability/service_factory.h" | 45 #include "chrome/browser/domain_reliability/service_factory.h" |
44 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 46 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
45 #include "chrome/browser/download/download_service.h" | 47 #include "chrome/browser/download/download_service.h" |
46 #include "chrome/browser/download/download_service_factory.h" | 48 #include "chrome/browser/download/download_service_factory.h" |
47 #include "chrome/browser/net/predictor.h" | 49 #include "chrome/browser/net/predictor.h" |
48 #include "chrome/browser/net/proxy_service_factory.h" | 50 #include "chrome/browser/net/proxy_service_factory.h" |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 } | 1023 } |
1022 | 1024 |
1023 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { | 1025 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { |
1024 return PushMessagingServiceFactory::GetForProfile(this); | 1026 return PushMessagingServiceFactory::GetForProfile(this); |
1025 } | 1027 } |
1026 | 1028 |
1027 content::SSLHostStateDelegate* ProfileImpl::GetSSLHostStateDelegate() { | 1029 content::SSLHostStateDelegate* ProfileImpl::GetSSLHostStateDelegate() { |
1028 return ChromeSSLHostStateDelegateFactory::GetForProfile(this); | 1030 return ChromeSSLHostStateDelegateFactory::GetForProfile(this); |
1029 } | 1031 } |
1030 | 1032 |
| 1033 content::BrowsingDataRemoverDelegate* |
| 1034 ProfileImpl::GetBrowsingDataRemoverDelegate() { |
| 1035 return ChromeBrowsingDataRemoverDelegateFactory::GetForProfile(this); |
| 1036 } |
| 1037 |
1031 // TODO(mlamouri): we should all these BrowserContext implementation to Profile | 1038 // TODO(mlamouri): we should all these BrowserContext implementation to Profile |
1032 // instead of repeating them inside all Profile implementations. | 1039 // instead of repeating them inside all Profile implementations. |
1033 content::PermissionManager* ProfileImpl::GetPermissionManager() { | 1040 content::PermissionManager* ProfileImpl::GetPermissionManager() { |
1034 return PermissionManagerFactory::GetForProfile(this); | 1041 return PermissionManagerFactory::GetForProfile(this); |
1035 } | 1042 } |
1036 | 1043 |
1037 content::BackgroundSyncController* ProfileImpl::GetBackgroundSyncController() { | 1044 content::BackgroundSyncController* ProfileImpl::GetBackgroundSyncController() { |
1038 return BackgroundSyncControllerFactory::GetForProfile(this); | 1045 return BackgroundSyncControllerFactory::GetForProfile(this); |
1039 } | 1046 } |
1040 | 1047 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1357 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1351 | 1358 |
1352 return service->CreateMonitor( | 1359 return service->CreateMonitor( |
1353 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); | 1360 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); |
1354 } | 1361 } |
1355 | 1362 |
1356 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { | 1363 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { |
1357 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); | 1364 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); |
1358 return base::MakeUnique<identity::IdentityService>(signin_manager); | 1365 return base::MakeUnique<identity::IdentityService>(signin_manager); |
1359 } | 1366 } |
OLD | NEW |