| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace net { | 25 namespace net { |
| 26 class StrictTransportSecurityState; | 26 class StrictTransportSecurityState; |
| 27 class SSLConfigService; | 27 class SSLConfigService; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace webkit_database { | 30 namespace webkit_database { |
| 31 class DatabaseTracker; | 31 class DatabaseTracker; |
| 32 } | 32 } |
| 33 | 33 |
| 34 class Blacklist; | 34 class BlacklistManager; |
| 35 class BookmarkModel; | 35 class BookmarkModel; |
| 36 class BrowserThemeProvider; | 36 class BrowserThemeProvider; |
| 37 class ChromeURLRequestContextGetter; | 37 class ChromeURLRequestContextGetter; |
| 38 class DesktopNotificationService; | 38 class DesktopNotificationService; |
| 39 class DownloadManager; | 39 class DownloadManager; |
| 40 class Extension; | 40 class Extension; |
| 41 class ExtensionDevToolsManager; | 41 class ExtensionDevToolsManager; |
| 42 class ExtensionProcessManager; | 42 class ExtensionProcessManager; |
| 43 class ExtensionMessageService; | 43 class ExtensionMessageService; |
| 44 class ExtensionsService; | 44 class ExtensionsService; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // profile. | 279 // profile. |
| 280 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; | 280 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
| 281 | 281 |
| 282 // Returns the request context used for extension-related requests. This | 282 // Returns the request context used for extension-related requests. This |
| 283 // is only used for a separate cookie store currently. | 283 // is only used for a separate cookie store currently. |
| 284 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 284 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| 285 | 285 |
| 286 // Returns the SSLConfigService for this profile. | 286 // Returns the SSLConfigService for this profile. |
| 287 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 287 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
| 288 | 288 |
| 289 // Returns the Privacy Blaclist for this profile. | 289 // Returns the Privacy Blacklist Manager for this profile. |
| 290 virtual Blacklist* GetBlacklist() = 0; | 290 virtual BlacklistManager* GetBlacklistManager() = 0; |
| 291 | 291 |
| 292 // Returns the session service for this profile. This may return NULL. If | 292 // Returns the session service for this profile. This may return NULL. If |
| 293 // this profile supports a session service (it isn't off the record), and | 293 // this profile supports a session service (it isn't off the record), and |
| 294 // the session service hasn't yet been created, this forces creation of | 294 // the session service hasn't yet been created, this forces creation of |
| 295 // the session service. | 295 // the session service. |
| 296 // | 296 // |
| 297 // This returns NULL in two situations: the profile is off the record, or the | 297 // This returns NULL in two situations: the profile is off the record, or the |
| 298 // session service has been explicitly shutdown (browser is exiting). Callers | 298 // session service has been explicitly shutdown (browser is exiting). Callers |
| 299 // should always check the return value for NULL. | 299 // should always check the return value for NULL. |
| 300 virtual SessionService* GetSessionService() = 0; | 300 virtual SessionService* GetSessionService() = 0; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 virtual void SetNativeTheme(); | 431 virtual void SetNativeTheme(); |
| 432 virtual void ClearTheme(); | 432 virtual void ClearTheme(); |
| 433 virtual Extension* GetTheme(); | 433 virtual Extension* GetTheme(); |
| 434 virtual ThemeProvider* GetThemeProvider(); | 434 virtual ThemeProvider* GetThemeProvider(); |
| 435 virtual ThumbnailStore* GetThumbnailStore(); | 435 virtual ThumbnailStore* GetThumbnailStore(); |
| 436 virtual bool HasCreatedDownloadManager() const; | 436 virtual bool HasCreatedDownloadManager() const; |
| 437 virtual URLRequestContextGetter* GetRequestContext(); | 437 virtual URLRequestContextGetter* GetRequestContext(); |
| 438 virtual URLRequestContextGetter* GetRequestContextForMedia(); | 438 virtual URLRequestContextGetter* GetRequestContextForMedia(); |
| 439 virtual URLRequestContextGetter* GetRequestContextForExtensions(); | 439 virtual URLRequestContextGetter* GetRequestContextForExtensions(); |
| 440 virtual net::SSLConfigService* GetSSLConfigService(); | 440 virtual net::SSLConfigService* GetSSLConfigService(); |
| 441 virtual Blacklist* GetBlacklist(); | 441 virtual BlacklistManager* GetBlacklistManager(); |
| 442 virtual SessionService* GetSessionService(); | 442 virtual SessionService* GetSessionService(); |
| 443 virtual void ShutdownSessionService(); | 443 virtual void ShutdownSessionService(); |
| 444 virtual bool HasSessionService() const; | 444 virtual bool HasSessionService() const; |
| 445 virtual std::wstring GetName(); | 445 virtual std::wstring GetName(); |
| 446 virtual void SetName(const std::wstring& name); | 446 virtual void SetName(const std::wstring& name); |
| 447 virtual std::wstring GetID(); | 447 virtual std::wstring GetID(); |
| 448 virtual void SetID(const std::wstring& id); | 448 virtual void SetID(const std::wstring& id); |
| 449 virtual bool DidLastSessionExitCleanly(); | 449 virtual bool DidLastSessionExitCleanly(); |
| 450 virtual BookmarkModel* GetBookmarkModel(); | 450 virtual BookmarkModel* GetBookmarkModel(); |
| 451 virtual bool IsSameProfile(Profile* profile); | 451 virtual bool IsSameProfile(Profile* profile); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 scoped_ptr<ProfileSyncService> sync_service_; | 518 scoped_ptr<ProfileSyncService> sync_service_; |
| 519 | 519 |
| 520 scoped_refptr<ChromeURLRequestContextGetter> request_context_; | 520 scoped_refptr<ChromeURLRequestContextGetter> request_context_; |
| 521 | 521 |
| 522 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; | 522 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; |
| 523 | 523 |
| 524 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; | 524 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; |
| 525 | 525 |
| 526 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 526 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
| 527 | 527 |
| 528 scoped_ptr<Blacklist> blacklist_; | 528 scoped_refptr<BlacklistManager> blacklist_manager_; |
| 529 | |
| 530 scoped_refptr<DownloadManager> download_manager_; | 529 scoped_refptr<DownloadManager> download_manager_; |
| 531 scoped_refptr<HistoryService> history_service_; | 530 scoped_refptr<HistoryService> history_service_; |
| 532 scoped_refptr<FaviconService> favicon_service_; | 531 scoped_refptr<FaviconService> favicon_service_; |
| 533 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; | 532 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; |
| 534 scoped_refptr<WebDataService> web_data_service_; | 533 scoped_refptr<WebDataService> web_data_service_; |
| 535 scoped_refptr<PasswordStore> password_store_; | 534 scoped_refptr<PasswordStore> password_store_; |
| 536 scoped_refptr<SessionService> session_service_; | 535 scoped_refptr<SessionService> session_service_; |
| 537 scoped_ptr<BrowserThemeProvider> theme_provider_; | 536 scoped_ptr<BrowserThemeProvider> theme_provider_; |
| 538 scoped_refptr<WebKitContext> webkit_context_; | 537 scoped_refptr<WebKitContext> webkit_context_; |
| 539 scoped_ptr<DesktopNotificationService> desktop_notification_service_; | 538 scoped_ptr<DesktopNotificationService> desktop_notification_service_; |
| 540 scoped_ptr<PersonalDataManager> personal_data_manager_; | 539 scoped_ptr<PersonalDataManager> personal_data_manager_; |
| 540 bool blacklist_manager_created_; |
| 541 bool history_service_created_; | 541 bool history_service_created_; |
| 542 bool favicon_service_created_; | 542 bool favicon_service_created_; |
| 543 bool created_web_data_service_; | 543 bool created_web_data_service_; |
| 544 bool created_password_store_; | 544 bool created_password_store_; |
| 545 bool created_download_manager_; | 545 bool created_download_manager_; |
| 546 bool created_theme_provider_; | 546 bool created_theme_provider_; |
| 547 // Whether or not the last session exited cleanly. This is set only once. | 547 // Whether or not the last session exited cleanly. This is set only once. |
| 548 bool last_session_exited_cleanly_; | 548 bool last_session_exited_cleanly_; |
| 549 | 549 |
| 550 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 550 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 571 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 571 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
| 572 | 572 |
| 573 #if defined(OS_CHROMEOS) | 573 #if defined(OS_CHROMEOS) |
| 574 chromeos::Preferences chromeos_preferences_; | 574 chromeos::Preferences chromeos_preferences_; |
| 575 #endif | 575 #endif |
| 576 | 576 |
| 577 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 577 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 578 }; | 578 }; |
| 579 | 579 |
| 580 #endif // CHROME_BROWSER_PROFILE_H_ | 580 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |