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 { |
+ public: |
+ virtual void InitPrefsAndCopyToHostZoomMap(const base::FilePath& file_path, |
+ HostZoomMap* host_zoom_map) = 0; |
+ virtual ~ZoomLevelPrefsStore() {} |
+ |
+ // Expose for tests. |
+ virtual PrefService* GetPrefs() = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_STORE_H_ |