| 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 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Destroys the incognito profile. | 195 // Destroys the incognito profile. |
| 196 virtual void DestroyOffTheRecordProfile() = 0; | 196 virtual void DestroyOffTheRecordProfile() = 0; |
| 197 | 197 |
| 198 // True if an incognito profile exists. | 198 // True if an incognito profile exists. |
| 199 virtual bool HasOffTheRecordProfile() = 0; | 199 virtual bool HasOffTheRecordProfile() = 0; |
| 200 | 200 |
| 201 // Return the original "recording" profile. This method returns this if the | 201 // Return the original "recording" profile. This method returns this if the |
| 202 // profile is not incognito. | 202 // profile is not incognito. |
| 203 virtual Profile* GetOriginalProfile() = 0; | 203 virtual Profile* GetOriginalProfile() = 0; |
| 204 | 204 |
| 205 // Returns whether the profile is supervised (see ManagedUserService). | 205 // Returns whether the profile is supervised (see SupervisedUserService). |
| 206 virtual bool IsSupervised() = 0; | 206 virtual bool IsSupervised() = 0; |
| 207 | 207 |
| 208 // Returns a pointer to the TopSites (thumbnail manager) instance | 208 // Returns a pointer to the TopSites (thumbnail manager) instance |
| 209 // for this profile. | 209 // for this profile. |
| 210 virtual history::TopSites* GetTopSites() = 0; | 210 virtual history::TopSites* GetTopSites() = 0; |
| 211 | 211 |
| 212 // Variant of GetTopSites that doesn't force creation. | 212 // Variant of GetTopSites that doesn't force creation. |
| 213 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | 213 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; |
| 214 | 214 |
| 215 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). | 215 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 struct hash<Profile*> { | 418 struct hash<Profile*> { |
| 419 std::size_t operator()(Profile* const& p) const { | 419 std::size_t operator()(Profile* const& p) const { |
| 420 return reinterpret_cast<std::size_t>(p); | 420 return reinterpret_cast<std::size_t>(p); |
| 421 } | 421 } |
| 422 }; | 422 }; |
| 423 | 423 |
| 424 } // namespace BASE_HASH_NAMESPACE | 424 } // namespace BASE_HASH_NAMESPACE |
| 425 #endif | 425 #endif |
| 426 | 426 |
| 427 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 427 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |