| 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 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/browser/content_settings/host_content_settings_map.h" | 36 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 37 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 37 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 38 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" | 38 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" |
| 39 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 39 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 40 #include "chrome/browser/download/download_service.h" | 40 #include "chrome/browser/download/download_service.h" |
| 41 #include "chrome/browser/download/download_service_factory.h" | 41 #include "chrome/browser/download/download_service_factory.h" |
| 42 #include "chrome/browser/extensions/extension_service.h" | 42 #include "chrome/browser/extensions/extension_service.h" |
| 43 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 43 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
| 44 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 44 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
| 45 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" | 45 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" |
| 46 #include "chrome/browser/guest_view/guest_view_manager.h" |
| 46 #include "chrome/browser/history/top_sites.h" | 47 #include "chrome/browser/history/top_sites.h" |
| 47 #include "chrome/browser/media/chrome_midi_permission_context.h" | 48 #include "chrome/browser/media/chrome_midi_permission_context.h" |
| 48 #include "chrome/browser/media/chrome_midi_permission_context_factory.h" | 49 #include "chrome/browser/media/chrome_midi_permission_context_factory.h" |
| 49 #include "chrome/browser/metrics/metrics_service.h" | 50 #include "chrome/browser/metrics/metrics_service.h" |
| 50 #include "chrome/browser/net/chrome_url_request_context.h" | 51 #include "chrome/browser/net/chrome_url_request_context.h" |
| 51 #include "chrome/browser/net/net_pref_observer.h" | 52 #include "chrome/browser/net/net_pref_observer.h" |
| 52 #include "chrome/browser/net/predictor.h" | 53 #include "chrome/browser/net/predictor.h" |
| 53 #include "chrome/browser/net/pref_proxy_config_tracker.h" | 54 #include "chrome/browser/net/pref_proxy_config_tracker.h" |
| 54 #include "chrome/browser/net/proxy_service_factory.h" | 55 #include "chrome/browser/net/proxy_service_factory.h" |
| 55 #include "chrome/browser/net/ssl_config_service_manager.h" | 56 #include "chrome/browser/net/ssl_config_service_manager.h" |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); | 1064 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); |
| 1064 } | 1065 } |
| 1065 return host_content_settings_map_.get(); | 1066 return host_content_settings_map_.get(); |
| 1066 } | 1067 } |
| 1067 | 1068 |
| 1068 content::GeolocationPermissionContext* | 1069 content::GeolocationPermissionContext* |
| 1069 ProfileImpl::GetGeolocationPermissionContext() { | 1070 ProfileImpl::GetGeolocationPermissionContext() { |
| 1070 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); | 1071 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); |
| 1071 } | 1072 } |
| 1072 | 1073 |
| 1074 content::BrowserPluginGuestManagerDelegate* |
| 1075 ProfileImpl::GetGuestManagerDelegate() { |
| 1076 return GuestViewManager::FromBrowserContext(this); |
| 1077 } |
| 1078 |
| 1073 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 1079 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
| 1074 return DownloadServiceFactory::GetForBrowserContext(this)-> | 1080 return DownloadServiceFactory::GetForBrowserContext(this)-> |
| 1075 GetDownloadManagerDelegate(); | 1081 GetDownloadManagerDelegate(); |
| 1076 } | 1082 } |
| 1077 | 1083 |
| 1078 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1084 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
| 1079 return GetExtensionSpecialStoragePolicy(); | 1085 return GetExtensionSpecialStoragePolicy(); |
| 1080 } | 1086 } |
| 1081 | 1087 |
| 1082 bool ProfileImpl::IsSameProfile(Profile* profile) { | 1088 bool ProfileImpl::IsSameProfile(Profile* profile) { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { | 1351 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { |
| 1346 #if defined(OS_CHROMEOS) | 1352 #if defined(OS_CHROMEOS) |
| 1347 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 1353 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 1348 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 1354 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 1349 g_browser_process->local_state()); | 1355 g_browser_process->local_state()); |
| 1350 } | 1356 } |
| 1351 #endif // defined(OS_CHROMEOS) | 1357 #endif // defined(OS_CHROMEOS) |
| 1352 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 1358 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 1353 GetPrefs(), g_browser_process->local_state()); | 1359 GetPrefs(), g_browser_process->local_state()); |
| 1354 } | 1360 } |
| OLD | NEW |