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

Unified Diff: content/public/browser/zoom_level_prefs_delegate.h

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 4 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_delegate.h
diff --git a/content/public/browser/zoom_level_prefs_delegate.h b/content/public/browser/zoom_level_prefs_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..b0abef7a997692f8362415856f36624a7e981cf8
--- /dev/null
+++ b/content/public/browser/zoom_level_prefs_delegate.h
@@ -0,0 +1,35 @@
+// 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_DELEGATE
+#define CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_DELEGATE
+
+#include "base/memory/ref_counted.h"
+
+class PrefService;
+
+namespace base {
+class FilePath;
+} // namespace base
+
+namespace content {
+
+class HostZoomMap;
+
+class ZoomLevelPrefsDelegate : public base::RefCounted<ZoomLevelPrefsDelegate> {
awong 2014/08/12 21:07:07 Does this need to be refcounted?
wjmaclean 2014/08/13 17:16:03 Hmmm, no. Done.
+ public:
+ virtual void InitZoomLevels(const base::FilePath& file_path,
+ HostZoomMap* host_zoom_map) = 0;
+ // Expose for tests.
+ virtual PrefService* GetPrefs() = 0;
+
+ protected:
+ friend class base::RefCounted<ZoomLevelPrefsDelegate>;
+
+ virtual ~ZoomLevelPrefsDelegate() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_PREFS_DELEGATE

Powered by Google App Engine
This is Rietveld 408576698