| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <string> |
| 12 |
| 11 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 12 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/timer.h" | 16 #include "base/timer.h" |
| 15 #include "chrome/browser/prefs/pref_change_registrar.h" | 17 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/profiles/profile_impl_io_data.h" | 19 #include "chrome/browser/profiles/profile_impl_io_data.h" |
| 18 #include "content/common/notification_observer.h" | 20 #include "content/common/notification_observer.h" |
| 19 #include "content/common/notification_registrar.h" | 21 #include "content/common/notification_registrar.h" |
| 20 | 22 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 91 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
| 90 const std::string& app_id); | 92 const std::string& app_id); |
| 91 virtual const content::ResourceContext& GetResourceContext(); | 93 virtual const content::ResourceContext& GetResourceContext(); |
| 92 virtual void RegisterExtensionWithRequestContexts(const Extension* extension); | 94 virtual void RegisterExtensionWithRequestContexts(const Extension* extension); |
| 93 virtual void UnregisterExtensionWithRequestContexts( | 95 virtual void UnregisterExtensionWithRequestContexts( |
| 94 const std::string& extension_id, | 96 const std::string& extension_id, |
| 95 const UnloadedExtensionInfo::Reason reason); | 97 const UnloadedExtensionInfo::Reason reason); |
| 96 virtual net::SSLConfigService* GetSSLConfigService(); | 98 virtual net::SSLConfigService* GetSSLConfigService(); |
| 97 virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 99 virtual HostContentSettingsMap* GetHostContentSettingsMap(); |
| 98 virtual HostZoomMap* GetHostZoomMap(); | 100 virtual HostZoomMap* GetHostZoomMap(); |
| 99 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); | |
| 100 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); | 101 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); |
| 101 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 102 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); |
| 102 virtual FindBarState* GetFindBarState(); | 103 virtual FindBarState* GetFindBarState(); |
| 103 virtual bool HasProfileSyncService() const; | 104 virtual bool HasProfileSyncService() const; |
| 104 virtual bool DidLastSessionExitCleanly(); | 105 virtual bool DidLastSessionExitCleanly(); |
| 105 virtual BookmarkModel* GetBookmarkModel(); | 106 virtual BookmarkModel* GetBookmarkModel(); |
| 106 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); | 107 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); |
| 107 virtual bool IsSameProfile(Profile* profile); | 108 virtual bool IsSameProfile(Profile* profile); |
| 108 virtual base::Time GetStartTime() const; | 109 virtual base::Time GetStartTime() const; |
| 109 virtual SpellCheckHost* GetSpellCheckHost(); | 110 virtual SpellCheckHost* GetSpellCheckHost(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 scoped_ptr<TokenService> token_service_; | 219 scoped_ptr<TokenService> token_service_; |
| 219 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; | 220 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; |
| 220 scoped_ptr<ProfileSyncService> sync_service_; | 221 scoped_ptr<ProfileSyncService> sync_service_; |
| 221 | 222 |
| 222 ProfileImplIOData::Handle io_data_; | 223 ProfileImplIOData::Handle io_data_; |
| 223 | 224 |
| 224 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 225 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
| 225 | 226 |
| 226 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 227 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 227 scoped_refptr<HostZoomMap> host_zoom_map_; | 228 scoped_refptr<HostZoomMap> host_zoom_map_; |
| 228 scoped_refptr<GeolocationContentSettingsMap> | |
| 229 geolocation_content_settings_map_; | |
| 230 scoped_refptr<GeolocationPermissionContext> | 229 scoped_refptr<GeolocationPermissionContext> |
| 231 geolocation_permission_context_; | 230 geolocation_permission_context_; |
| 232 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; | 231 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; |
| 233 scoped_ptr<FindBarState> find_bar_state_; | 232 scoped_ptr<FindBarState> find_bar_state_; |
| 234 scoped_ptr<ChromeDownloadManagerDelegate> download_manager_delegate_; | 233 scoped_ptr<ChromeDownloadManagerDelegate> download_manager_delegate_; |
| 235 scoped_refptr<DownloadManager> download_manager_; | 234 scoped_refptr<DownloadManager> download_manager_; |
| 236 scoped_refptr<HistoryService> history_service_; | 235 scoped_refptr<HistoryService> history_service_; |
| 237 scoped_refptr<FaviconService> favicon_service_; | 236 scoped_refptr<FaviconService> favicon_service_; |
| 238 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 237 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
| 239 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 238 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 292 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 294 | 293 |
| 295 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 294 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
| 296 | 295 |
| 297 Profile::Delegate* delegate_; | 296 Profile::Delegate* delegate_; |
| 298 | 297 |
| 299 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 298 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 300 }; | 299 }; |
| 301 | 300 |
| 302 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 301 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |