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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 class SSLHostState; | 59 class SSLHostState; |
60 class TransportSecurityPersister; | 60 class TransportSecurityPersister; |
61 class SQLitePersistentCookieStore; | 61 class SQLitePersistentCookieStore; |
62 class TabRestoreService; | 62 class TabRestoreService; |
63 class TemplateURLFetcher; | 63 class TemplateURLFetcher; |
64 class TemplateURLModel; | 64 class TemplateURLModel; |
65 class ThemeProvider; | 65 class ThemeProvider; |
66 class ThumbnailStore; | 66 class ThumbnailStore; |
67 class URLRequestContextGetter; | 67 class URLRequestContextGetter; |
68 class UserScriptMaster; | 68 class UserScriptMaster; |
| 69 class UserStyleSheetWatcher; |
69 class VisitedLinkMaster; | 70 class VisitedLinkMaster; |
70 class VisitedLinkEventListener; | 71 class VisitedLinkEventListener; |
71 class WebDataService; | 72 class WebDataService; |
72 class WebKitContext; | 73 class WebKitContext; |
73 class WebResourceService; | 74 class WebResourceService; |
74 | 75 |
75 typedef intptr_t ProfileId; | 76 typedef intptr_t ProfileId; |
76 | 77 |
77 class Profile { | 78 class Profile { |
78 public: | 79 public: |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 293 |
293 // Returns the Hostname <-> Content settings map for this profile. | 294 // Returns the Hostname <-> Content settings map for this profile. |
294 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 295 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
295 | 296 |
296 // Returns the Hostname <-> Zoom Level map for this profile. | 297 // Returns the Hostname <-> Zoom Level map for this profile. |
297 virtual HostZoomMap* GetHostZoomMap() = 0; | 298 virtual HostZoomMap* GetHostZoomMap() = 0; |
298 | 299 |
299 // Returns the Privacy Blacklist for this profile. | 300 // Returns the Privacy Blacklist for this profile. |
300 virtual Blacklist* GetPrivacyBlacklist() = 0; | 301 virtual Blacklist* GetPrivacyBlacklist() = 0; |
301 | 302 |
| 303 // Returns the user style sheet watcher. |
| 304 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; |
| 305 |
302 // Returns the session service for this profile. This may return NULL. If | 306 // Returns the session service for this profile. This may return NULL. If |
303 // this profile supports a session service (it isn't off the record), and | 307 // this profile supports a session service (it isn't off the record), and |
304 // the session service hasn't yet been created, this forces creation of | 308 // the session service hasn't yet been created, this forces creation of |
305 // the session service. | 309 // the session service. |
306 // | 310 // |
307 // This returns NULL in two situations: the profile is off the record, or the | 311 // This returns NULL in two situations: the profile is off the record, or the |
308 // session service has been explicitly shutdown (browser is exiting). Callers | 312 // session service has been explicitly shutdown (browser is exiting). Callers |
309 // should always check the return value for NULL. | 313 // should always check the return value for NULL. |
310 virtual SessionService* GetSessionService() = 0; | 314 virtual SessionService* GetSessionService() = 0; |
311 | 315 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 virtual BrowserThemeProvider* GetThemeProvider(); | 464 virtual BrowserThemeProvider* GetThemeProvider(); |
461 virtual ThumbnailStore* GetThumbnailStore(); | 465 virtual ThumbnailStore* GetThumbnailStore(); |
462 virtual bool HasCreatedDownloadManager() const; | 466 virtual bool HasCreatedDownloadManager() const; |
463 virtual URLRequestContextGetter* GetRequestContext(); | 467 virtual URLRequestContextGetter* GetRequestContext(); |
464 virtual URLRequestContextGetter* GetRequestContextForMedia(); | 468 virtual URLRequestContextGetter* GetRequestContextForMedia(); |
465 virtual URLRequestContextGetter* GetRequestContextForExtensions(); | 469 virtual URLRequestContextGetter* GetRequestContextForExtensions(); |
466 virtual net::SSLConfigService* GetSSLConfigService(); | 470 virtual net::SSLConfigService* GetSSLConfigService(); |
467 virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 471 virtual HostContentSettingsMap* GetHostContentSettingsMap(); |
468 virtual HostZoomMap* GetHostZoomMap(); | 472 virtual HostZoomMap* GetHostZoomMap(); |
469 virtual Blacklist* GetPrivacyBlacklist(); | 473 virtual Blacklist* GetPrivacyBlacklist(); |
| 474 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); |
470 virtual SessionService* GetSessionService(); | 475 virtual SessionService* GetSessionService(); |
471 virtual void ShutdownSessionService(); | 476 virtual void ShutdownSessionService(); |
472 virtual bool HasSessionService() const; | 477 virtual bool HasSessionService() const; |
473 virtual bool DidLastSessionExitCleanly(); | 478 virtual bool DidLastSessionExitCleanly(); |
474 virtual BookmarkModel* GetBookmarkModel(); | 479 virtual BookmarkModel* GetBookmarkModel(); |
475 virtual bool IsSameProfile(Profile* profile); | 480 virtual bool IsSameProfile(Profile* profile); |
476 virtual base::Time GetStartTime() const; | 481 virtual base::Time GetStartTime() const; |
477 virtual TabRestoreService* GetTabRestoreService(); | 482 virtual TabRestoreService* GetTabRestoreService(); |
478 virtual void ResetTabRestoreService(); | 483 virtual void ResetTabRestoreService(); |
479 virtual SpellCheckHost* GetSpellCheckHost(); | 484 virtual SpellCheckHost* GetSpellCheckHost(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 551 |
547 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; | 552 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; |
548 | 553 |
549 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; | 554 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; |
550 | 555 |
551 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 556 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
552 | 557 |
553 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 558 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
554 scoped_refptr<HostZoomMap> host_zoom_map_; | 559 scoped_refptr<HostZoomMap> host_zoom_map_; |
555 scoped_refptr<Blacklist> privacy_blacklist_; | 560 scoped_refptr<Blacklist> privacy_blacklist_; |
| 561 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; |
556 scoped_refptr<DownloadManager> download_manager_; | 562 scoped_refptr<DownloadManager> download_manager_; |
557 scoped_refptr<HistoryService> history_service_; | 563 scoped_refptr<HistoryService> history_service_; |
558 scoped_refptr<FaviconService> favicon_service_; | 564 scoped_refptr<FaviconService> favicon_service_; |
559 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; | 565 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; |
560 scoped_refptr<WebDataService> web_data_service_; | 566 scoped_refptr<WebDataService> web_data_service_; |
561 scoped_refptr<PasswordStore> password_store_; | 567 scoped_refptr<PasswordStore> password_store_; |
562 scoped_refptr<SessionService> session_service_; | 568 scoped_refptr<SessionService> session_service_; |
563 scoped_ptr<BrowserThemeProvider> theme_provider_; | 569 scoped_ptr<BrowserThemeProvider> theme_provider_; |
564 scoped_refptr<WebKitContext> webkit_context_; | 570 scoped_refptr<WebKitContext> webkit_context_; |
565 scoped_ptr<DesktopNotificationService> desktop_notification_service_; | 571 scoped_ptr<DesktopNotificationService> desktop_notification_service_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 603 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
598 | 604 |
599 #if defined(OS_CHROMEOS) | 605 #if defined(OS_CHROMEOS) |
600 chromeos::Preferences chromeos_preferences_; | 606 chromeos::Preferences chromeos_preferences_; |
601 #endif | 607 #endif |
602 | 608 |
603 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 609 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
604 }; | 610 }; |
605 | 611 |
606 #endif // CHROME_BROWSER_PROFILE_H_ | 612 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |