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

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

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r288093. 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/host_zoom_map.h
diff --git a/content/public/browser/host_zoom_map.h b/content/public/browser/host_zoom_map.h
index e65b443d2b4a64590e3aca78ef3ba45c3a0873d5..f5a06b2e54b24d255690b388a3f41db03817fcb7 100644
--- a/content/public/browser/host_zoom_map.h
+++ b/content/public/browser/host_zoom_map.h
@@ -13,11 +13,13 @@
#include "base/callback.h"
#include "base/callback_list.h"
#include "content/common/content_export.h"
+#include "url/gurl.h"
namespace content {
class BrowserContext;
class ResourceContext;
+class SiteInstance;
class WebContents;
// Maps hostnames to custom zoom levels. Written on the UI thread and read on
@@ -55,6 +57,11 @@ class HostZoomMap {
CONTENT_EXPORT static HostZoomMap* GetForBrowserContext(
BrowserContext* browser_context);
+ CONTENT_EXPORT static HostZoomMap* GetForSite(SiteInstance* instance);
awong 2014/08/11 22:36:33 What does this mean semantically? Not saying thi
wjmaclean 2014/08/12 16:57:44 I'm assuming there's a one-to-one relationship bet
Fady Samuel 2014/08/13 19:45:42 The signin page currently uses a different storage
+
+ CONTENT_EXPORT static HostZoomMap* GetForWebContents(
+ const WebContents* contents);
+
// Returns the current zoom level for the specified WebContents. May be
// temporary or host-specific.
CONTENT_EXPORT static double GetZoomLevel(const WebContents* web_contents);

Powered by Google App Engine
This is Rietveld 408576698