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 managed (see ManagedUserService). | 205 // Returns whether the profile is supervised (see ManagedUserService). |
206 virtual bool IsManaged() = 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(). |
216 // Retrieves a pointer to the ExtensionService associated with this | 216 // Retrieves a pointer to the ExtensionService associated with this |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 struct hash<Profile*> { | 424 struct hash<Profile*> { |
425 std::size_t operator()(Profile* const& p) const { | 425 std::size_t operator()(Profile* const& p) const { |
426 return reinterpret_cast<std::size_t>(p); | 426 return reinterpret_cast<std::size_t>(p); |
427 } | 427 } |
428 }; | 428 }; |
429 | 429 |
430 } // namespace BASE_HASH_NAMESPACE | 430 } // namespace BASE_HASH_NAMESPACE |
431 #endif | 431 #endif |
432 | 432 |
433 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 433 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |