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

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: Convert to using only profile prefs. Created 6 years, 2 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 22 matching lines...) Expand all
33 33
34 namespace base { 34 namespace base {
35 class SequencedTaskRunner; 35 class SequencedTaskRunner;
36 class Time; 36 class Time;
37 } 37 }
38 38
39 namespace chrome_browser_net { 39 namespace chrome_browser_net {
40 class Predictor; 40 class Predictor;
41 } 41 }
42 42
43 namespace chrome {
Bernhard Bauer 2014/10/01 15:09:14 Nit: I'm not sure exactly why, but I feel like thi
wjmaclean 2014/10/01 20:32:59 You're right ... sorting order is wrong here ... f
44 class ChromeZoomLevelPrefs;
45 }
46
43 namespace chromeos { 47 namespace chromeos {
44 class LibCrosServiceLibraryImpl; 48 class LibCrosServiceLibraryImpl;
45 class ResetDefaultProxyConfigServiceTask; 49 class ResetDefaultProxyConfigServiceTask;
46 } 50 }
47 51
48 namespace content { 52 namespace content {
49 class WebUI; 53 class WebUI;
50 } 54 }
51 55
52 namespace storage { 56 namespace storage {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; 215 virtual history::TopSites* GetTopSitesWithoutCreating() = 0;
212 216
213 // Accessor. The instance is created upon first access. 217 // Accessor. The instance is created upon first access.
214 virtual ExtensionSpecialStoragePolicy* 218 virtual ExtensionSpecialStoragePolicy*
215 GetExtensionSpecialStoragePolicy() = 0; 219 GetExtensionSpecialStoragePolicy() = 0;
216 220
217 // Retrieves a pointer to the PrefService that manages the 221 // Retrieves a pointer to the PrefService that manages the
218 // preferences for this user profile. 222 // preferences for this user profile.
219 virtual PrefService* GetPrefs() = 0; 223 virtual PrefService* GetPrefs() = 0;
220 224
225 // Retrieves a pointer to the PrefService that manages the default zoom
226 // level and the per-host zoom levels for this user profile.
227 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition.
228 virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs();
229
221 // Retrieves a pointer to the PrefService that manages the preferences 230 // Retrieves a pointer to the PrefService that manages the preferences
222 // for OffTheRecord Profiles. This PrefService is lazily created the first 231 // for OffTheRecord Profiles. This PrefService is lazily created the first
223 // time that this method is called. 232 // time that this method is called.
224 virtual PrefService* GetOffTheRecordPrefs() = 0; 233 virtual PrefService* GetOffTheRecordPrefs() = 0;
225 234
226 // Returns the main request context. 235 // Returns the main request context.
227 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 236 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
228 237
229 // Returns the request context used for extension-related requests. This 238 // Returns the request context used for extension-related requests. This
230 // is only used for a separate cookie store currently. 239 // 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*> { 421 struct hash<Profile*> {
413 std::size_t operator()(Profile* const& p) const { 422 std::size_t operator()(Profile* const& p) const {
414 return reinterpret_cast<std::size_t>(p); 423 return reinterpret_cast<std::size_t>(p);
415 } 424 }
416 }; 425 };
417 426
418 } // namespace BASE_HASH_NAMESPACE 427 } // namespace BASE_HASH_NAMESPACE
419 #endif 428 #endif
420 429
421 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 430 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698