| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Returns whether the profile is a legacy supervised user profile. | 185 // Returns whether the profile is a legacy supervised user profile. |
| 186 virtual bool IsLegacySupervised() = 0; | 186 virtual bool IsLegacySupervised() = 0; |
| 187 | 187 |
| 188 // Accessor. The instance is created upon first access. | 188 // Accessor. The instance is created upon first access. |
| 189 virtual ExtensionSpecialStoragePolicy* | 189 virtual ExtensionSpecialStoragePolicy* |
| 190 GetExtensionSpecialStoragePolicy() = 0; | 190 GetExtensionSpecialStoragePolicy() = 0; |
| 191 | 191 |
| 192 // Retrieves a pointer to the PrefService that manages the | 192 // Retrieves a pointer to the PrefService that manages the |
| 193 // preferences for this user profile. | 193 // preferences for this user profile. |
| 194 virtual PrefService* GetPrefs() = 0; | 194 virtual PrefService* GetPrefs() = 0; |
| 195 virtual const PrefService* GetPrefs() const = 0; |
| 195 | 196 |
| 196 // Retrieves a pointer to the PrefService that manages the default zoom | 197 // Retrieves a pointer to the PrefService that manages the default zoom |
| 197 // level and the per-host zoom levels for this user profile. | 198 // level and the per-host zoom levels for this user profile. |
| 198 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. | 199 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. |
| 199 virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs(); | 200 virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs(); |
| 200 | 201 |
| 201 // Retrieves a pointer to the PrefService that manages the preferences | 202 // Retrieves a pointer to the PrefService that manages the preferences |
| 202 // for OffTheRecord Profiles. This PrefService is lazily created the first | 203 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| 203 // time that this method is called. | 204 // time that this method is called. |
| 204 virtual PrefService* GetOffTheRecordPrefs() = 0; | 205 virtual PrefService* GetOffTheRecordPrefs() = 0; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 401 |
| 401 DISALLOW_COPY_AND_ASSIGN(Profile); | 402 DISALLOW_COPY_AND_ASSIGN(Profile); |
| 402 }; | 403 }; |
| 403 | 404 |
| 404 // The comparator for profile pointers as key in a map. | 405 // The comparator for profile pointers as key in a map. |
| 405 struct ProfileCompare { | 406 struct ProfileCompare { |
| 406 bool operator()(Profile* a, Profile* b) const; | 407 bool operator()(Profile* a, Profile* b) const; |
| 407 }; | 408 }; |
| 408 | 409 |
| 409 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |