OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 class NavigationController; | 80 class NavigationController; |
81 class PasswordStore; | 81 class PasswordStore; |
82 class PersonalDataManager; | 82 class PersonalDataManager; |
83 class PinnedTabService; | 83 class PinnedTabService; |
84 class PrefProxyConfigTracker; | 84 class PrefProxyConfigTracker; |
85 class PrefService; | 85 class PrefService; |
86 class ProfileSyncFactory; | 86 class ProfileSyncFactory; |
87 class ProfileSyncService; | 87 class ProfileSyncService; |
88 class ProfileSyncService; | 88 class ProfileSyncService; |
89 class PromoCounter; | 89 class PromoCounter; |
90 class PromoCounter; | 90 class ProtocolHandlerRegistry; |
91 class SQLitePersistentCookieStore; | 91 class SQLitePersistentCookieStore; |
92 class SSLConfigServiceManager; | 92 class SSLConfigServiceManager; |
93 class SSLHostState; | 93 class SSLHostState; |
94 class SessionService; | 94 class SessionService; |
95 class SpellCheckHost; | 95 class SpellCheckHost; |
96 class StatusTray; | 96 class StatusTray; |
97 class TabRestoreService; | 97 class TabRestoreService; |
98 class TemplateURLFetcher; | 98 class TemplateURLFetcher; |
99 class TemplateURLModel; | 99 class TemplateURLModel; |
100 class TokenService; | 100 class TokenService; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 // Returns true if this profile has a profile sync service. | 411 // Returns true if this profile has a profile sync service. |
412 virtual bool HasProfileSyncService() const = 0; | 412 virtual bool HasProfileSyncService() const = 0; |
413 | 413 |
414 // Returns true if the last time this profile was open it was exited cleanly. | 414 // Returns true if the last time this profile was open it was exited cleanly. |
415 virtual bool DidLastSessionExitCleanly() = 0; | 415 virtual bool DidLastSessionExitCleanly() = 0; |
416 | 416 |
417 // Returns the BookmarkModel, creating if not yet created. | 417 // Returns the BookmarkModel, creating if not yet created. |
418 virtual BookmarkModel* GetBookmarkModel() = 0; | 418 virtual BookmarkModel* GetBookmarkModel() = 0; |
419 | 419 |
| 420 // Returns the ProtocolHandlerRegistry, creating if not yet created. |
| 421 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; |
| 422 |
420 // Returns the Gaia Token Service, creating if not yet created. | 423 // Returns the Gaia Token Service, creating if not yet created. |
421 virtual TokenService* GetTokenService() = 0; | 424 virtual TokenService* GetTokenService() = 0; |
422 | 425 |
423 // Returns the ProfileSyncService, creating if not yet created. | 426 // Returns the ProfileSyncService, creating if not yet created. |
424 virtual ProfileSyncService* GetProfileSyncService() = 0; | 427 virtual ProfileSyncService* GetProfileSyncService() = 0; |
425 | 428 |
426 // Returns the ProfileSyncService, creating if not yet created, with | 429 // Returns the ProfileSyncService, creating if not yet created, with |
427 // the specified CrOS username. | 430 // the specified CrOS username. |
428 virtual ProfileSyncService* GetProfileSyncService( | 431 virtual ProfileSyncService* GetProfileSyncService( |
429 const std::string& cros_user) = 0; | 432 const std::string& cros_user) = 0; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // | 477 // |
475 // NOTE: this is invoked internally on a normal shutdown, but is public so | 478 // NOTE: this is invoked internally on a normal shutdown, but is public so |
476 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 479 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
477 virtual void MarkAsCleanShutdown() = 0; | 480 virtual void MarkAsCleanShutdown() = 0; |
478 | 481 |
479 virtual void InitExtensions() = 0; | 482 virtual void InitExtensions() = 0; |
480 | 483 |
481 // Start up service that gathers data from a promo resource feed. | 484 // Start up service that gathers data from a promo resource feed. |
482 virtual void InitPromoResources() = 0; | 485 virtual void InitPromoResources() = 0; |
483 | 486 |
| 487 // Register URLRequestFactories for protocols registered with |
| 488 // registerProtocolHandler. |
| 489 virtual void InitRegisteredProtocolHandlers() = 0; |
| 490 |
484 // Returns the new tab page resource cache. | 491 // Returns the new tab page resource cache. |
485 virtual NTPResourceCache* GetNTPResourceCache() = 0; | 492 virtual NTPResourceCache* GetNTPResourceCache() = 0; |
486 | 493 |
487 // Returns the last directory that was chosen for uploading or opening a file. | 494 // Returns the last directory that was chosen for uploading or opening a file. |
488 virtual FilePath last_selected_directory() = 0; | 495 virtual FilePath last_selected_directory() = 0; |
489 virtual void set_last_selected_directory(const FilePath& path) = 0; | 496 virtual void set_last_selected_directory(const FilePath& path) = 0; |
490 | 497 |
491 // Returns a pointer to the ChromeBlobStorageContext instance for this | 498 // Returns a pointer to the ChromeBlobStorageContext instance for this |
492 // profile. | 499 // profile. |
493 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 500 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 bool restored_last_session_; | 597 bool restored_last_session_; |
591 | 598 |
592 // Accessibility events will only be propagated when the pause | 599 // Accessibility events will only be propagated when the pause |
593 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 600 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
594 // increment and decrement the level, respectively, rather than set it to | 601 // increment and decrement the level, respectively, rather than set it to |
595 // true or false, so that calls can be nested. | 602 // true or false, so that calls can be nested. |
596 int accessibility_pause_level_; | 603 int accessibility_pause_level_; |
597 }; | 604 }; |
598 | 605 |
599 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 606 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |