| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 class SessionService; | 65 class SessionService; |
| 66 class SpellCheckHost; | 66 class SpellCheckHost; |
| 67 class SSLConfigServiceManager; | 67 class SSLConfigServiceManager; |
| 68 class SSLHostState; | 68 class SSLHostState; |
| 69 class TransportSecurityPersister; | 69 class TransportSecurityPersister; |
| 70 class SQLitePersistentCookieStore; | 70 class SQLitePersistentCookieStore; |
| 71 class TabRestoreService; | 71 class TabRestoreService; |
| 72 class TemplateURLFetcher; | 72 class TemplateURLFetcher; |
| 73 class TemplateURLModel; | 73 class TemplateURLModel; |
| 74 class ThemeProvider; | 74 class ThemeProvider; |
| 75 class TokenService; |
| 75 class URLRequestContextGetter; | 76 class URLRequestContextGetter; |
| 76 class UserScriptMaster; | 77 class UserScriptMaster; |
| 77 class UserStyleSheetWatcher; | 78 class UserStyleSheetWatcher; |
| 78 class VisitedLinkMaster; | 79 class VisitedLinkMaster; |
| 79 class VisitedLinkEventListener; | 80 class VisitedLinkEventListener; |
| 80 class WebDataService; | 81 class WebDataService; |
| 81 class WebKitContext; | 82 class WebKitContext; |
| 82 class WebResourceService; | 83 class WebResourceService; |
| 83 class CloudPrintProxyService; | 84 class CloudPrintProxyService; |
| 84 | 85 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 353 |
| 353 // Returns true if this profile has a session service. | 354 // Returns true if this profile has a session service. |
| 354 virtual bool HasSessionService() const = 0; | 355 virtual bool HasSessionService() const = 0; |
| 355 | 356 |
| 356 // Returns true if the last time this profile was open it was exited cleanly. | 357 // Returns true if the last time this profile was open it was exited cleanly. |
| 357 virtual bool DidLastSessionExitCleanly() = 0; | 358 virtual bool DidLastSessionExitCleanly() = 0; |
| 358 | 359 |
| 359 // Returns the BookmarkModel, creating if not yet created. | 360 // Returns the BookmarkModel, creating if not yet created. |
| 360 virtual BookmarkModel* GetBookmarkModel() = 0; | 361 virtual BookmarkModel* GetBookmarkModel() = 0; |
| 361 | 362 |
| 363 // Returns the Gaia Token Service, creating if not yet created. |
| 364 virtual TokenService* GetTokenService() = 0; |
| 365 |
| 362 // Returns the ProfileSyncService, creating if not yet created. | 366 // Returns the ProfileSyncService, creating if not yet created. |
| 363 virtual ProfileSyncService* GetProfileSyncService() = 0; | 367 virtual ProfileSyncService* GetProfileSyncService() = 0; |
| 364 | 368 |
| 365 // Returns the CloudPrintProxyService, creating if not yet created. | 369 // Returns the CloudPrintProxyService, creating if not yet created. |
| 366 virtual CloudPrintProxyService* GetCloudPrintProxyService() = 0; | 370 virtual CloudPrintProxyService* GetCloudPrintProxyService() = 0; |
| 367 | 371 |
| 368 // Return whether 2 profiles are the same. 2 profiles are the same if they | 372 // Return whether 2 profiles are the same. 2 profiles are the same if they |
| 369 // represent the same profile. This can happen if there is pointer equality | 373 // represent the same profile. This can happen if there is pointer equality |
| 370 // or if one profile is the off the record version of another profile (or vice | 374 // or if one profile is the off the record version of another profile (or vice |
| 371 // versa). | 375 // versa). |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 virtual WebKitContext* GetWebKitContext(); | 537 virtual WebKitContext* GetWebKitContext(); |
| 534 virtual DesktopNotificationService* GetDesktopNotificationService(); | 538 virtual DesktopNotificationService* GetDesktopNotificationService(); |
| 535 virtual BackgroundContentsService* GetBackgroundContentsService(); | 539 virtual BackgroundContentsService* GetBackgroundContentsService(); |
| 536 virtual void MarkAsCleanShutdown(); | 540 virtual void MarkAsCleanShutdown(); |
| 537 virtual void InitExtensions(); | 541 virtual void InitExtensions(); |
| 538 virtual void InitWebResources(); | 542 virtual void InitWebResources(); |
| 539 virtual NTPResourceCache* GetNTPResourceCache(); | 543 virtual NTPResourceCache* GetNTPResourceCache(); |
| 540 virtual FilePath last_selected_directory(); | 544 virtual FilePath last_selected_directory(); |
| 541 virtual void set_last_selected_directory(const FilePath& path); | 545 virtual void set_last_selected_directory(const FilePath& path); |
| 542 virtual ProfileSyncService* GetProfileSyncService(); | 546 virtual ProfileSyncService* GetProfileSyncService(); |
| 547 virtual TokenService* GetTokenService(); |
| 543 void InitSyncService(); | 548 void InitSyncService(); |
| 544 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 549 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
| 545 void InitCloudPrintProxyService(); | 550 void InitCloudPrintProxyService(); |
| 546 | 551 |
| 547 // NotificationObserver implementation. | 552 // NotificationObserver implementation. |
| 548 virtual void Observe(NotificationType type, | 553 virtual void Observe(NotificationType type, |
| 549 const NotificationSource& source, | 554 const NotificationSource& source, |
| 550 const NotificationDetails& details); | 555 const NotificationDetails& details); |
| 551 | 556 |
| 552 // SpellCheckHostObserver implementation. | 557 // SpellCheckHostObserver implementation. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 transport_security_state_; | 593 transport_security_state_; |
| 589 scoped_refptr<TransportSecurityPersister> | 594 scoped_refptr<TransportSecurityPersister> |
| 590 transport_security_persister_; | 595 transport_security_persister_; |
| 591 scoped_ptr<PrefService> prefs_; | 596 scoped_ptr<PrefService> prefs_; |
| 592 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; | 597 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |
| 593 scoped_ptr<TemplateURLModel> template_url_model_; | 598 scoped_ptr<TemplateURLModel> template_url_model_; |
| 594 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 599 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
| 595 scoped_refptr<WebResourceService> web_resource_service_; | 600 scoped_refptr<WebResourceService> web_resource_service_; |
| 596 scoped_ptr<NTPResourceCache> ntp_resource_cache_; | 601 scoped_ptr<NTPResourceCache> ntp_resource_cache_; |
| 597 | 602 |
| 603 scoped_ptr<TokenService> token_service_; |
| 598 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; | 604 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; |
| 599 scoped_ptr<ProfileSyncService> sync_service_; | 605 scoped_ptr<ProfileSyncService> sync_service_; |
| 600 scoped_ptr<CloudPrintProxyService> cloud_print_proxy_service_; | 606 scoped_ptr<CloudPrintProxyService> cloud_print_proxy_service_; |
| 601 | 607 |
| 602 scoped_refptr<ChromeURLRequestContextGetter> request_context_; | 608 scoped_refptr<ChromeURLRequestContextGetter> request_context_; |
| 603 | 609 |
| 604 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; | 610 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; |
| 605 | 611 |
| 606 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; | 612 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; |
| 607 | 613 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 669 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
| 664 | 670 |
| 665 #if defined(OS_CHROMEOS) | 671 #if defined(OS_CHROMEOS) |
| 666 chromeos::Preferences chromeos_preferences_; | 672 chromeos::Preferences chromeos_preferences_; |
| 667 #endif | 673 #endif |
| 668 | 674 |
| 669 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 675 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 670 }; | 676 }; |
| 671 | 677 |
| 672 #endif // CHROME_BROWSER_PROFILE_H_ | 678 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |