OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 25 matching lines...) Expand all Loading... |
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 HistoryService; | 45 class HistoryService; |
| 46 class HostZoomMap; |
46 class NavigationController; | 47 class NavigationController; |
47 class NTPResourceCache; | 48 class NTPResourceCache; |
48 class PasswordStore; | 49 class PasswordStore; |
49 class PersonalDataManager; | 50 class PersonalDataManager; |
50 class PrefService; | 51 class PrefService; |
51 class ProfileSyncService; | 52 class ProfileSyncService; |
52 class SearchVersusNavigateClassifier; | 53 class SearchVersusNavigateClassifier; |
53 class SessionService; | 54 class SessionService; |
54 class SpellCheckHost; | 55 class SpellCheckHost; |
55 class SSLConfigServiceManager; | 56 class SSLConfigServiceManager; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // profile. | 281 // profile. |
281 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; | 282 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
282 | 283 |
283 // Returns the request context used for extension-related requests. This | 284 // Returns the request context used for extension-related requests. This |
284 // is only used for a separate cookie store currently. | 285 // is only used for a separate cookie store currently. |
285 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 286 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
286 | 287 |
287 // Returns the SSLConfigService for this profile. | 288 // Returns the SSLConfigService for this profile. |
288 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 289 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
289 | 290 |
| 291 // Returns the Hostname <-> Zoom Level map for this profile. |
| 292 virtual HostZoomMap* GetHostZoomMap() = 0; |
| 293 |
290 // Returns the Privacy Blacklist Manager for this profile. | 294 // Returns the Privacy Blacklist Manager for this profile. |
291 virtual BlacklistManager* GetBlacklistManager() = 0; | 295 virtual BlacklistManager* GetBlacklistManager() = 0; |
292 | 296 |
293 // Returns the session service for this profile. This may return NULL. If | 297 // Returns the session service for this profile. This may return NULL. If |
294 // this profile supports a session service (it isn't off the record), and | 298 // this profile supports a session service (it isn't off the record), and |
295 // the session service hasn't yet been created, this forces creation of | 299 // the session service hasn't yet been created, this forces creation of |
296 // the session service. | 300 // the session service. |
297 // | 301 // |
298 // This returns NULL in two situations: the profile is off the record, or the | 302 // This returns NULL in two situations: the profile is off the record, or the |
299 // session service has been explicitly shutdown (browser is exiting). Callers | 303 // session service has been explicitly shutdown (browser is exiting). Callers |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 virtual void SetNativeTheme(); | 430 virtual void SetNativeTheme(); |
427 virtual void ClearTheme(); | 431 virtual void ClearTheme(); |
428 virtual Extension* GetTheme(); | 432 virtual Extension* GetTheme(); |
429 virtual ThemeProvider* GetThemeProvider(); | 433 virtual ThemeProvider* GetThemeProvider(); |
430 virtual ThumbnailStore* GetThumbnailStore(); | 434 virtual ThumbnailStore* GetThumbnailStore(); |
431 virtual bool HasCreatedDownloadManager() const; | 435 virtual bool HasCreatedDownloadManager() const; |
432 virtual URLRequestContextGetter* GetRequestContext(); | 436 virtual URLRequestContextGetter* GetRequestContext(); |
433 virtual URLRequestContextGetter* GetRequestContextForMedia(); | 437 virtual URLRequestContextGetter* GetRequestContextForMedia(); |
434 virtual URLRequestContextGetter* GetRequestContextForExtensions(); | 438 virtual URLRequestContextGetter* GetRequestContextForExtensions(); |
435 virtual net::SSLConfigService* GetSSLConfigService(); | 439 virtual net::SSLConfigService* GetSSLConfigService(); |
| 440 virtual HostZoomMap* GetHostZoomMap(); |
436 virtual BlacklistManager* GetBlacklistManager(); | 441 virtual BlacklistManager* GetBlacklistManager(); |
437 virtual SessionService* GetSessionService(); | 442 virtual SessionService* GetSessionService(); |
438 virtual void ShutdownSessionService(); | 443 virtual void ShutdownSessionService(); |
439 virtual bool HasSessionService() const; | 444 virtual bool HasSessionService() const; |
440 virtual bool DidLastSessionExitCleanly(); | 445 virtual bool DidLastSessionExitCleanly(); |
441 virtual BookmarkModel* GetBookmarkModel(); | 446 virtual BookmarkModel* GetBookmarkModel(); |
442 virtual bool IsSameProfile(Profile* profile); | 447 virtual bool IsSameProfile(Profile* profile); |
443 virtual base::Time GetStartTime() const; | 448 virtual base::Time GetStartTime() const; |
444 virtual TabRestoreService* GetTabRestoreService(); | 449 virtual TabRestoreService* GetTabRestoreService(); |
445 virtual void ResetTabRestoreService(); | 450 virtual void ResetTabRestoreService(); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 scoped_ptr<ProfileSyncService> sync_service_; | 514 scoped_ptr<ProfileSyncService> sync_service_; |
510 | 515 |
511 scoped_refptr<ChromeURLRequestContextGetter> request_context_; | 516 scoped_refptr<ChromeURLRequestContextGetter> request_context_; |
512 | 517 |
513 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; | 518 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; |
514 | 519 |
515 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; | 520 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; |
516 | 521 |
517 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 522 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
518 | 523 |
| 524 scoped_refptr<HostZoomMap> host_zoom_map_; |
519 scoped_refptr<BlacklistManager> blacklist_manager_; | 525 scoped_refptr<BlacklistManager> blacklist_manager_; |
520 scoped_refptr<DownloadManager> download_manager_; | 526 scoped_refptr<DownloadManager> download_manager_; |
521 scoped_refptr<HistoryService> history_service_; | 527 scoped_refptr<HistoryService> history_service_; |
522 scoped_refptr<FaviconService> favicon_service_; | 528 scoped_refptr<FaviconService> favicon_service_; |
523 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; | 529 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; |
524 scoped_refptr<WebDataService> web_data_service_; | 530 scoped_refptr<WebDataService> web_data_service_; |
525 scoped_refptr<PasswordStore> password_store_; | 531 scoped_refptr<PasswordStore> password_store_; |
526 scoped_refptr<SessionService> session_service_; | 532 scoped_refptr<SessionService> session_service_; |
527 scoped_ptr<BrowserThemeProvider> theme_provider_; | 533 scoped_ptr<BrowserThemeProvider> theme_provider_; |
528 scoped_refptr<WebKitContext> webkit_context_; | 534 scoped_refptr<WebKitContext> webkit_context_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 568 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
563 | 569 |
564 #if defined(OS_CHROMEOS) | 570 #if defined(OS_CHROMEOS) |
565 chromeos::Preferences chromeos_preferences_; | 571 chromeos::Preferences chromeos_preferences_; |
566 #endif | 572 #endif |
567 | 573 |
568 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 574 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
569 }; | 575 }; |
570 | 576 |
571 #endif // CHROME_BROWSER_PROFILE_H_ | 577 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |