| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace content { | 52 namespace content { |
| 53 class WebUI; | 53 class WebUI; |
| 54 } | 54 } |
| 55 | 55 |
| 56 namespace storage { | 56 namespace storage { |
| 57 class FileSystemContext; | 57 class FileSystemContext; |
| 58 } | 58 } |
| 59 | 59 |
| 60 namespace history { | |
| 61 class TopSites; | |
| 62 } | |
| 63 | |
| 64 namespace net { | 60 namespace net { |
| 65 class SSLConfigService; | 61 class SSLConfigService; |
| 66 } | 62 } |
| 67 | 63 |
| 68 namespace user_prefs { | 64 namespace user_prefs { |
| 69 class PrefRegistrySyncable; | 65 class PrefRegistrySyncable; |
| 70 } | 66 } |
| 71 | 67 |
| 72 // Instead of adding more members to Profile, consider creating a | 68 // Instead of adding more members to Profile, consider creating a |
| 73 // KeyedService. See | 69 // KeyedService. See |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 virtual Profile* GetOriginalProfile() = 0; | 203 virtual Profile* GetOriginalProfile() = 0; |
| 208 | 204 |
| 209 // Returns whether the profile is supervised (either a legacy supervised | 205 // Returns whether the profile is supervised (either a legacy supervised |
| 210 // user or a child account; see SupervisedUserService). | 206 // user or a child account; see SupervisedUserService). |
| 211 virtual bool IsSupervised() = 0; | 207 virtual bool IsSupervised() = 0; |
| 212 // Returns whether the profile is associated with a child account. | 208 // Returns whether the profile is associated with a child account. |
| 213 virtual bool IsChild() = 0; | 209 virtual bool IsChild() = 0; |
| 214 // Returns whether the profile is a legacy supervised user profile. | 210 // Returns whether the profile is a legacy supervised user profile. |
| 215 virtual bool IsLegacySupervised() = 0; | 211 virtual bool IsLegacySupervised() = 0; |
| 216 | 212 |
| 217 // Returns a pointer to the TopSites (thumbnail manager) instance | |
| 218 // for this profile. | |
| 219 virtual history::TopSites* GetTopSites() = 0; | |
| 220 | |
| 221 // Variant of GetTopSites that doesn't force creation. | |
| 222 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | |
| 223 | |
| 224 // Accessor. The instance is created upon first access. | 213 // Accessor. The instance is created upon first access. |
| 225 virtual ExtensionSpecialStoragePolicy* | 214 virtual ExtensionSpecialStoragePolicy* |
| 226 GetExtensionSpecialStoragePolicy() = 0; | 215 GetExtensionSpecialStoragePolicy() = 0; |
| 227 | 216 |
| 228 // Retrieves a pointer to the PrefService that manages the | 217 // Retrieves a pointer to the PrefService that manages the |
| 229 // preferences for this user profile. | 218 // preferences for this user profile. |
| 230 virtual PrefService* GetPrefs() = 0; | 219 virtual PrefService* GetPrefs() = 0; |
| 231 | 220 |
| 232 // Retrieves a pointer to the PrefService that manages the default zoom | 221 // Retrieves a pointer to the PrefService that manages the default zoom |
| 233 // level and the per-host zoom levels for this user profile. | 222 // level and the per-host zoom levels for this user profile. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 | 408 |
| 420 DISALLOW_COPY_AND_ASSIGN(Profile); | 409 DISALLOW_COPY_AND_ASSIGN(Profile); |
| 421 }; | 410 }; |
| 422 | 411 |
| 423 // The comparator for profile pointers as key in a map. | 412 // The comparator for profile pointers as key in a map. |
| 424 struct ProfileCompare { | 413 struct ProfileCompare { |
| 425 bool operator()(Profile* a, Profile* b) const; | 414 bool operator()(Profile* a, Profile* b) const; |
| 426 }; | 415 }; |
| 427 | 416 |
| 428 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 417 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |