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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/content_settings/host_content_settings_map.h" | 34 #include "chrome/browser/content_settings/host_content_settings_map.h" |
35 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 35 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
36 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" | 36 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" |
37 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 37 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
38 #include "chrome/browser/download/download_service.h" | 38 #include "chrome/browser/download/download_service.h" |
39 #include "chrome/browser/download/download_service_factory.h" | 39 #include "chrome/browser/download/download_service_factory.h" |
40 #include "chrome/browser/extensions/extension_service.h" | 40 #include "chrome/browser/extensions/extension_service.h" |
41 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 41 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
42 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 42 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
43 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" | 43 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" |
| 44 #include "chrome/browser/guest_view/guest_view_manager.h" |
44 #include "chrome/browser/history/top_sites.h" | 45 #include "chrome/browser/history/top_sites.h" |
45 #include "chrome/browser/media/chrome_midi_permission_context.h" | 46 #include "chrome/browser/media/chrome_midi_permission_context.h" |
46 #include "chrome/browser/media/chrome_midi_permission_context_factory.h" | 47 #include "chrome/browser/media/chrome_midi_permission_context_factory.h" |
47 #include "chrome/browser/metrics/metrics_service.h" | 48 #include "chrome/browser/metrics/metrics_service.h" |
48 #include "chrome/browser/net/chrome_url_request_context.h" | 49 #include "chrome/browser/net/chrome_url_request_context.h" |
49 #include "chrome/browser/net/net_pref_observer.h" | 50 #include "chrome/browser/net/net_pref_observer.h" |
50 #include "chrome/browser/net/predictor.h" | 51 #include "chrome/browser/net/predictor.h" |
51 #include "chrome/browser/net/pref_proxy_config_tracker.h" | 52 #include "chrome/browser/net/pref_proxy_config_tracker.h" |
52 #include "chrome/browser/net/proxy_service_factory.h" | 53 #include "chrome/browser/net/proxy_service_factory.h" |
53 #include "chrome/browser/net/ssl_config_service_manager.h" | 54 #include "chrome/browser/net/ssl_config_service_manager.h" |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); | 1038 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); |
1038 } | 1039 } |
1039 return host_content_settings_map_.get(); | 1040 return host_content_settings_map_.get(); |
1040 } | 1041 } |
1041 | 1042 |
1042 content::GeolocationPermissionContext* | 1043 content::GeolocationPermissionContext* |
1043 ProfileImpl::GetGeolocationPermissionContext() { | 1044 ProfileImpl::GetGeolocationPermissionContext() { |
1044 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); | 1045 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); |
1045 } | 1046 } |
1046 | 1047 |
| 1048 content::BrowserPluginGuestManagerDelegate* |
| 1049 ProfileImpl::GetGuestManagerDelegate() { |
| 1050 return GuestViewManager::FromBrowserContext(this); |
| 1051 } |
| 1052 |
1047 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 1053 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
1048 return DownloadServiceFactory::GetForBrowserContext(this)-> | 1054 return DownloadServiceFactory::GetForBrowserContext(this)-> |
1049 GetDownloadManagerDelegate(); | 1055 GetDownloadManagerDelegate(); |
1050 } | 1056 } |
1051 | 1057 |
1052 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1058 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
1053 return GetExtensionSpecialStoragePolicy(); | 1059 return GetExtensionSpecialStoragePolicy(); |
1054 } | 1060 } |
1055 | 1061 |
1056 bool ProfileImpl::IsSameProfile(Profile* profile) { | 1062 bool ProfileImpl::IsSameProfile(Profile* profile) { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { | 1325 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { |
1320 #if defined(OS_CHROMEOS) | 1326 #if defined(OS_CHROMEOS) |
1321 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 1327 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
1322 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 1328 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
1323 g_browser_process->local_state()); | 1329 g_browser_process->local_state()); |
1324 } | 1330 } |
1325 #endif // defined(OS_CHROMEOS) | 1331 #endif // defined(OS_CHROMEOS) |
1326 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 1332 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
1327 GetPrefs(), g_browser_process->local_state()); | 1333 GetPrefs(), g_browser_process->local_state()); |
1328 } | 1334 } |
OLD | NEW |