| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 23 matching lines...) Expand all Loading... |
| 34 class FindBarState; | 34 class FindBarState; |
| 35 class GAIAInfoUpdateService; | 35 class GAIAInfoUpdateService; |
| 36 class HistoryService; | 36 class HistoryService; |
| 37 class HostContentSettingsMap; | 37 class HostContentSettingsMap; |
| 38 class PasswordStore; | 38 class PasswordStore; |
| 39 class PrefService; | 39 class PrefService; |
| 40 class ProfileSyncService; | 40 class ProfileSyncService; |
| 41 class PromoCounter; | 41 class PromoCounter; |
| 42 class ProtocolHandlerRegistry; | 42 class ProtocolHandlerRegistry; |
| 43 class SpeechInputPreferences; | 43 class SpeechInputPreferences; |
| 44 class SpellCheckHost; | |
| 45 class TemplateURLFetcher; | 44 class TemplateURLFetcher; |
| 46 class TestingProfile; | 45 class TestingProfile; |
| 47 class TokenService; | 46 class TokenService; |
| 48 class UserScriptMaster; | 47 class UserScriptMaster; |
| 49 class UserStyleSheetWatcher; | 48 class UserStyleSheetWatcher; |
| 50 class VisitedLinkMaster; | 49 class VisitedLinkMaster; |
| 51 class WebDataService; | 50 class WebDataService; |
| 52 | 51 |
| 53 namespace base { | 52 namespace base { |
| 54 class Time; | 53 class Time; |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // or if one profile is the incognito version of another profile (or vice | 411 // or if one profile is the incognito version of another profile (or vice |
| 413 // versa). | 412 // versa). |
| 414 virtual bool IsSameProfile(Profile* profile) = 0; | 413 virtual bool IsSameProfile(Profile* profile) = 0; |
| 415 | 414 |
| 416 // Returns the time the profile was started. This is not the time the profile | 415 // Returns the time the profile was started. This is not the time the profile |
| 417 // was created, rather it is the time the user started chrome and logged into | 416 // was created, rather it is the time the user started chrome and logged into |
| 418 // this profile. For the single profile case, this corresponds to the time | 417 // this profile. For the single profile case, this corresponds to the time |
| 419 // the user started chrome. | 418 // the user started chrome. |
| 420 virtual base::Time GetStartTime() const = 0; | 419 virtual base::Time GetStartTime() const = 0; |
| 421 | 420 |
| 422 // May return NULL. | |
| 423 virtual SpellCheckHost* GetSpellCheckHost() = 0; | |
| 424 | |
| 425 // If |force| is false, and the spellchecker is already initialized (or is in | |
| 426 // the process of initializing), then do nothing. Otherwise clobber the | |
| 427 // current spellchecker and replace it with a new one. | |
| 428 virtual void ReinitializeSpellCheckHost(bool force) = 0; | |
| 429 | |
| 430 // Marks the profile as cleanly shutdown. | 421 // Marks the profile as cleanly shutdown. |
| 431 // | 422 // |
| 432 // NOTE: this is invoked internally on a normal shutdown, but is public so | 423 // NOTE: this is invoked internally on a normal shutdown, but is public so |
| 433 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 424 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
| 434 virtual void MarkAsCleanShutdown() = 0; | 425 virtual void MarkAsCleanShutdown() = 0; |
| 435 | 426 |
| 436 // Initializes extensions machinery. | 427 // Initializes extensions machinery. |
| 437 // Component extensions are always enabled, external and user extensions | 428 // Component extensions are always enabled, external and user extensions |
| 438 // are controlled by |extensions_enabled|. | 429 // are controlled by |extensions_enabled|. |
| 439 virtual void InitExtensions(bool extensions_enabled) = 0; | 430 virtual void InitExtensions(bool extensions_enabled) = 0; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 struct hash<Profile*> { | 568 struct hash<Profile*> { |
| 578 std::size_t operator()(Profile* const& p) const { | 569 std::size_t operator()(Profile* const& p) const { |
| 579 return reinterpret_cast<std::size_t>(p); | 570 return reinterpret_cast<std::size_t>(p); |
| 580 } | 571 } |
| 581 }; | 572 }; |
| 582 | 573 |
| 583 } // namespace BASE_HASH_NAMESPACE | 574 } // namespace BASE_HASH_NAMESPACE |
| 584 #endif | 575 #endif |
| 585 | 576 |
| 586 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 577 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |