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..4e89676e8bfaa8a5602c94e8429acd821e07c332 |
--- /dev/null |
+++ b/content/public/browser/zoom_level_prefs_store.h |
@@ -0,0 +1,32 @@ |
+// 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 |
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
|
+// (2) per-host zoom levels. It can be used to load the latter into a |
+// HostZoomMap. |
+class ZoomLevelPrefsStore { |
+ public: |
+ virtual ~ZoomLevelPrefsStore() {} |
+ |
+ virtual void InitPrefsAndCopyToHostZoomMap(const base::FilePath& file_path, |
+ HostZoomMap* host_zoom_map) = 0; |
+ 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
|
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_ |