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

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

Issue 541103002: Introduce ChromeZoomLevelPref, make zoom level prefs independent of profile prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments (use WeakPtr in callback). Created 6 years, 3 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; 211 virtual history::TopSites* GetTopSitesWithoutCreating() = 0;
212 212
213 // Accessor. The instance is created upon first access. 213 // Accessor. The instance is created upon first access.
214 virtual ExtensionSpecialStoragePolicy* 214 virtual ExtensionSpecialStoragePolicy*
215 GetExtensionSpecialStoragePolicy() = 0; 215 GetExtensionSpecialStoragePolicy() = 0;
216 216
217 // Retrieves a pointer to the PrefService that manages the 217 // Retrieves a pointer to the PrefService that manages the
218 // preferences for this user profile. 218 // preferences for this user profile.
219 virtual PrefService* GetPrefs() = 0; 219 virtual PrefService* GetPrefs() = 0;
220 220
221 // Retrieves a pointer to the PrefService that manages the default zoom
222 // level and the per-host zoom levels for this user profile.
223 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition.
224 virtual PrefService* GetZoomLevelPrefs();
Bernhard Bauer 2014/09/12 10:28:49 Instead of adding a new method to Profile, could y
wjmaclean 2014/09/16 18:44:44 I could make it a keyede service, but hopefully th
225
221 // Retrieves a pointer to the PrefService that manages the preferences 226 // Retrieves a pointer to the PrefService that manages the preferences
222 // for OffTheRecord Profiles. This PrefService is lazily created the first 227 // for OffTheRecord Profiles. This PrefService is lazily created the first
223 // time that this method is called. 228 // time that this method is called.
224 virtual PrefService* GetOffTheRecordPrefs() = 0; 229 virtual PrefService* GetOffTheRecordPrefs() = 0;
225 230
226 // Returns the main request context. 231 // Returns the main request context.
227 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 232 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
228 233
229 // Returns the request context used for extension-related requests. This 234 // Returns the request context used for extension-related requests. This
230 // is only used for a separate cookie store currently. 235 // is only used for a separate cookie store currently.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 struct hash<Profile*> { 417 struct hash<Profile*> {
413 std::size_t operator()(Profile* const& p) const { 418 std::size_t operator()(Profile* const& p) const {
414 return reinterpret_cast<std::size_t>(p); 419 return reinterpret_cast<std::size_t>(p);
415 } 420 }
416 }; 421 };
417 422
418 } // namespace BASE_HASH_NAMESPACE 423 } // namespace BASE_HASH_NAMESPACE
419 #endif 424 #endif
420 425
421 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 426 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698