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

Unified 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: Rebase to fix scoped_refptr conversion. 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/zoom_level_prefs_store.h
diff --git a/content/public/browser/zoom_level_prefs_store.h b/content/public/browser/zoom_level_prefs_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..487063275c0ad0e0f67a45f131efea1a3e74faa5
--- /dev/null
+++ b/content/public/browser/zoom_level_prefs_store.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_
+#define CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_
+
+class PrefService;
+
+namespace base {
+class FilePath;
+} // namespace base
+
+namespace content {
+
+class HostZoomMap;
+
+// An interface to manage a prefs store for (1) default zoom level, and
+// (2) per-host zoom levels. It can be used to load the latter into a
+// HostZoomMap.
+class ZoomLevelPrefsStore {
sky 2014/09/05 19:28:07 Why does this need to be in content?
wjmaclean 2014/09/05 21:01:47 Ultimately this is an interface that will be acces
+ public:
+ virtual void InitPrefsAndCopyToHostZoomMap(const base::FilePath& file_path,
+ HostZoomMap* host_zoom_map) = 0;
+ virtual ~ZoomLevelPrefsStore() {}
sky 2014/09/05 19:28:07 nit: constructor/destructor comes before other fun
wjmaclean 2014/09/05 21:01:47 Done.
+
+ // Expose for tests.
+ virtual PrefService* GetPrefs() = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_
« 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