| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILE_H_ |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class BrowserThemeProvider; | 35 class BrowserThemeProvider; |
| 36 class ChromeURLRequestContextGetter; | 36 class ChromeURLRequestContextGetter; |
| 37 class DesktopNotificationService; | 37 class DesktopNotificationService; |
| 38 class DownloadManager; | 38 class DownloadManager; |
| 39 class Extension; | 39 class Extension; |
| 40 class ExtensionDevToolsManager; | 40 class ExtensionDevToolsManager; |
| 41 class ExtensionProcessManager; | 41 class ExtensionProcessManager; |
| 42 class ExtensionMessageService; | 42 class ExtensionMessageService; |
| 43 class ExtensionsService; | 43 class ExtensionsService; |
| 44 class FaviconService; | 44 class FaviconService; |
| 45 class GeolocationPermissionContext; |
| 45 class HistoryService; | 46 class HistoryService; |
| 46 class HostContentSettingsMap; | 47 class HostContentSettingsMap; |
| 47 class HostZoomMap; | 48 class HostZoomMap; |
| 48 class NavigationController; | 49 class NavigationController; |
| 49 class NTPResourceCache; | 50 class NTPResourceCache; |
| 50 class PasswordStore; | 51 class PasswordStore; |
| 51 class PersonalDataManager; | 52 class PersonalDataManager; |
| 52 class PrefService; | 53 class PrefService; |
| 53 class ProfileSyncService; | 54 class ProfileSyncService; |
| 54 class ProfileSyncFactory; | 55 class ProfileSyncFactory; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Returns the request context used for extension-related requests. This | 288 // Returns the request context used for extension-related requests. This |
| 288 // is only used for a separate cookie store currently. | 289 // is only used for a separate cookie store currently. |
| 289 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 290 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| 290 | 291 |
| 291 // Returns the SSLConfigService for this profile. | 292 // Returns the SSLConfigService for this profile. |
| 292 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 293 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
| 293 | 294 |
| 294 // Returns the Hostname <-> Content settings map for this profile. | 295 // Returns the Hostname <-> Content settings map for this profile. |
| 295 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 296 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
| 296 | 297 |
| 298 // Returns the GeolocationPermissionContext for this profile. |
| 299 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; |
| 300 |
| 297 // Returns the Hostname <-> Zoom Level map for this profile. | 301 // Returns the Hostname <-> Zoom Level map for this profile. |
| 298 virtual HostZoomMap* GetHostZoomMap() = 0; | 302 virtual HostZoomMap* GetHostZoomMap() = 0; |
| 299 | 303 |
| 300 // Returns the Privacy Blacklist for this profile. | 304 // Returns the Privacy Blacklist for this profile. |
| 301 virtual Blacklist* GetPrivacyBlacklist() = 0; | 305 virtual Blacklist* GetPrivacyBlacklist() = 0; |
| 302 | 306 |
| 303 // Returns the user style sheet watcher. | 307 // Returns the user style sheet watcher. |
| 304 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; | 308 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; |
| 305 | 309 |
| 306 // Returns the session service for this profile. This may return NULL. If | 310 // Returns the session service for this profile. This may return NULL. If |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 virtual void ClearTheme(); | 466 virtual void ClearTheme(); |
| 463 virtual Extension* GetTheme(); | 467 virtual Extension* GetTheme(); |
| 464 virtual BrowserThemeProvider* GetThemeProvider(); | 468 virtual BrowserThemeProvider* GetThemeProvider(); |
| 465 virtual ThumbnailStore* GetThumbnailStore(); | 469 virtual ThumbnailStore* GetThumbnailStore(); |
| 466 virtual bool HasCreatedDownloadManager() const; | 470 virtual bool HasCreatedDownloadManager() const; |
| 467 virtual URLRequestContextGetter* GetRequestContext(); | 471 virtual URLRequestContextGetter* GetRequestContext(); |
| 468 virtual URLRequestContextGetter* GetRequestContextForMedia(); | 472 virtual URLRequestContextGetter* GetRequestContextForMedia(); |
| 469 virtual URLRequestContextGetter* GetRequestContextForExtensions(); | 473 virtual URLRequestContextGetter* GetRequestContextForExtensions(); |
| 470 virtual net::SSLConfigService* GetSSLConfigService(); | 474 virtual net::SSLConfigService* GetSSLConfigService(); |
| 471 virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 475 virtual HostContentSettingsMap* GetHostContentSettingsMap(); |
| 476 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); |
| 472 virtual HostZoomMap* GetHostZoomMap(); | 477 virtual HostZoomMap* GetHostZoomMap(); |
| 473 virtual Blacklist* GetPrivacyBlacklist(); | 478 virtual Blacklist* GetPrivacyBlacklist(); |
| 474 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 479 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); |
| 475 virtual SessionService* GetSessionService(); | 480 virtual SessionService* GetSessionService(); |
| 476 virtual void ShutdownSessionService(); | 481 virtual void ShutdownSessionService(); |
| 477 virtual bool HasSessionService() const; | 482 virtual bool HasSessionService() const; |
| 478 virtual bool DidLastSessionExitCleanly(); | 483 virtual bool DidLastSessionExitCleanly(); |
| 479 virtual BookmarkModel* GetBookmarkModel(); | 484 virtual BookmarkModel* GetBookmarkModel(); |
| 480 virtual bool IsSameProfile(Profile* profile); | 485 virtual bool IsSameProfile(Profile* profile); |
| 481 virtual base::Time GetStartTime() const; | 486 virtual base::Time GetStartTime() const; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 | 554 |
| 550 scoped_refptr<ChromeURLRequestContextGetter> request_context_; | 555 scoped_refptr<ChromeURLRequestContextGetter> request_context_; |
| 551 | 556 |
| 552 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; | 557 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; |
| 553 | 558 |
| 554 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; | 559 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; |
| 555 | 560 |
| 556 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 561 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
| 557 | 562 |
| 558 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 563 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 564 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
| 559 scoped_refptr<HostZoomMap> host_zoom_map_; | 565 scoped_refptr<HostZoomMap> host_zoom_map_; |
| 560 scoped_refptr<Blacklist> privacy_blacklist_; | 566 scoped_refptr<Blacklist> privacy_blacklist_; |
| 561 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; | 567 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; |
| 562 scoped_refptr<DownloadManager> download_manager_; | 568 scoped_refptr<DownloadManager> download_manager_; |
| 563 scoped_refptr<HistoryService> history_service_; | 569 scoped_refptr<HistoryService> history_service_; |
| 564 scoped_refptr<FaviconService> favicon_service_; | 570 scoped_refptr<FaviconService> favicon_service_; |
| 565 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; | 571 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; |
| 566 scoped_refptr<WebDataService> web_data_service_; | 572 scoped_refptr<WebDataService> web_data_service_; |
| 567 scoped_refptr<PasswordStore> password_store_; | 573 scoped_refptr<PasswordStore> password_store_; |
| 568 scoped_refptr<SessionService> session_service_; | 574 scoped_refptr<SessionService> session_service_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 609 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
| 604 | 610 |
| 605 #if defined(OS_CHROMEOS) | 611 #if defined(OS_CHROMEOS) |
| 606 chromeos::Preferences chromeos_preferences_; | 612 chromeos::Preferences chromeos_preferences_; |
| 607 #endif | 613 #endif |
| 608 | 614 |
| 609 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 615 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 610 }; | 616 }; |
| 611 | 617 |
| 612 #endif // CHROME_BROWSER_PROFILE_H_ | 618 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |