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

Side by Side Diff: content/public/browser/zoom_level_prefs_store.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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_
6 #define CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_
7
8 class PrefService;
9
10 namespace base {
11 class FilePath;
12 } // namespace base
13
14 namespace content {
15
16 class HostZoomMap;
17
18 // An interface to manage a prefs store for (1) default zoom level, and
Bernhard Bauer 2014/09/12 10:28:49 What exactly is a "prefs store" in this context? I
wjmaclean 2014/09/16 18:44:44 I guess the best way to describe this is to say th
19 // (2) per-host zoom levels. It can be used to load the latter into a
20 // HostZoomMap.
21 class ZoomLevelPrefsStore {
22 public:
23 virtual ~ZoomLevelPrefsStore() {}
24
25 virtual void InitPrefsAndCopyToHostZoomMap(const base::FilePath& file_path,
26 HostZoomMap* host_zoom_map) = 0;
27 virtual PrefService* GetPrefs() = 0;
Bernhard Bauer 2014/09/12 10:28:49 This is a layering violation; content doesn't know
wjmaclean 2014/09/16 18:44:44 Ok. I suppose I can remove this, and have clients
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_
OLDNEW
« chrome/browser/ui/zoom/zoom_level_prefs_store_impl.cc ('K') | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698