Chromium Code Reviews| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 class PasswordStore; | 76 class PasswordStore; |
| 77 class PersonalDataManager; | 77 class PersonalDataManager; |
| 78 class PinnedTabService; | 78 class PinnedTabService; |
| 79 class PrefProxyConfigTracker; | 79 class PrefProxyConfigTracker; |
| 80 class PrefService; | 80 class PrefService; |
| 81 class PrerenderManager; | 81 class PrerenderManager; |
| 82 class ProfileSyncFactory; | 82 class ProfileSyncFactory; |
| 83 class ProfileSyncService; | 83 class ProfileSyncService; |
| 84 class ProfileSyncService; | 84 class ProfileSyncService; |
| 85 class PromoCounter; | 85 class PromoCounter; |
| 86 class PromoCounter; | 86 class ProtocolHandlerRegistry; |
| 87 class SQLitePersistentCookieStore; | 87 class SQLitePersistentCookieStore; |
| 88 class SSLConfigServiceManager; | 88 class SSLConfigServiceManager; |
| 89 class SSLHostState; | 89 class SSLHostState; |
| 90 class SessionService; | 90 class SessionService; |
| 91 class SpellCheckHost; | 91 class SpellCheckHost; |
| 92 class StatusTray; | 92 class StatusTray; |
| 93 class TabRestoreService; | 93 class TabRestoreService; |
| 94 class TemplateURLFetcher; | 94 class TemplateURLFetcher; |
| 95 class TemplateURLModel; | 95 class TemplateURLModel; |
| 96 class TokenService; | 96 class TokenService; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 | 406 |
| 407 // Returns true if this profile has a profile sync service. | 407 // Returns true if this profile has a profile sync service. |
| 408 virtual bool HasProfileSyncService() const = 0; | 408 virtual bool HasProfileSyncService() const = 0; |
| 409 | 409 |
| 410 // Returns true if the last time this profile was open it was exited cleanly. | 410 // Returns true if the last time this profile was open it was exited cleanly. |
| 411 virtual bool DidLastSessionExitCleanly() = 0; | 411 virtual bool DidLastSessionExitCleanly() = 0; |
| 412 | 412 |
| 413 // Returns the BookmarkModel, creating if not yet created. | 413 // Returns the BookmarkModel, creating if not yet created. |
| 414 virtual BookmarkModel* GetBookmarkModel() = 0; | 414 virtual BookmarkModel* GetBookmarkModel() = 0; |
| 415 | 415 |
| 416 // Returns the ProtocolHandlerRegistry, creating if not yet created. | |
| 417 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; | |
| 418 | |
| 416 // Returns the Gaia Token Service, creating if not yet created. | 419 // Returns the Gaia Token Service, creating if not yet created. |
| 417 virtual TokenService* GetTokenService() = 0; | 420 virtual TokenService* GetTokenService() = 0; |
| 418 | 421 |
| 419 // Returns the ProfileSyncService, creating if not yet created. | 422 // Returns the ProfileSyncService, creating if not yet created. |
| 420 virtual ProfileSyncService* GetProfileSyncService() = 0; | 423 virtual ProfileSyncService* GetProfileSyncService() = 0; |
| 421 | 424 |
| 422 // Returns the ProfileSyncService, creating if not yet created, with | 425 // Returns the ProfileSyncService, creating if not yet created, with |
| 423 // the specified CrOS username. | 426 // the specified CrOS username. |
| 424 virtual ProfileSyncService* GetProfileSyncService( | 427 virtual ProfileSyncService* GetProfileSyncService( |
| 425 const std::string& cros_user) = 0; | 428 const std::string& cros_user) = 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 470 // | 473 // |
| 471 // NOTE: this is invoked internally on a normal shutdown, but is public so | 474 // NOTE: this is invoked internally on a normal shutdown, but is public so |
| 472 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 475 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
| 473 virtual void MarkAsCleanShutdown() = 0; | 476 virtual void MarkAsCleanShutdown() = 0; |
| 474 | 477 |
| 475 virtual void InitExtensions() = 0; | 478 virtual void InitExtensions() = 0; |
| 476 | 479 |
| 477 // Start up service that gathers data from a web resource feed. | 480 // Start up service that gathers data from a web resource feed. |
| 478 virtual void InitWebResources() = 0; | 481 virtual void InitWebResources() = 0; |
| 479 | 482 |
| 483 // Register URLRequestFactories for protocols registered with registerProtocol Handler. | |
|
jam
2011/02/15 18:48:39
nit: 80 character limit in chrome code
koz (OOO until 15th September)
2011/02/16 03:37:48
Done.
| |
| 484 virtual void InitRegisteredProtocolHandlers() = 0; | |
| 485 | |
| 480 // Returns the new tab page resource cache. | 486 // Returns the new tab page resource cache. |
| 481 virtual NTPResourceCache* GetNTPResourceCache() = 0; | 487 virtual NTPResourceCache* GetNTPResourceCache() = 0; |
| 482 | 488 |
| 483 // Returns the last directory that was chosen for uploading or opening a file. | 489 // Returns the last directory that was chosen for uploading or opening a file. |
| 484 virtual FilePath last_selected_directory() = 0; | 490 virtual FilePath last_selected_directory() = 0; |
| 485 virtual void set_last_selected_directory(const FilePath& path) = 0; | 491 virtual void set_last_selected_directory(const FilePath& path) = 0; |
| 486 | 492 |
| 487 // Returns a pointer to the ChromeBlobStorageContext instance for this | 493 // Returns a pointer to the ChromeBlobStorageContext instance for this |
| 488 // profile. | 494 // profile. |
| 489 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 495 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 577 bool restored_last_session_; | 583 bool restored_last_session_; |
| 578 | 584 |
| 579 // Accessibility events will only be propagated when the pause | 585 // Accessibility events will only be propagated when the pause |
| 580 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 586 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 581 // increment and decrement the level, respectively, rather than set it to | 587 // increment and decrement the level, respectively, rather than set it to |
| 582 // true or false, so that calls can be nested. | 588 // true or false, so that calls can be nested. |
| 583 int accessibility_pause_level_; | 589 int accessibility_pause_level_; |
| 584 }; | 590 }; |
| 585 | 591 |
| 586 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |