Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 898003002: [Cleanup] Const-correct the profile() method for the EasyUnlockService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698