summaryrefslogtreecommitdiffstats
path: root/content/browser/host_zoom_map.h
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 16:37:01 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 16:37:01 +0000
commit13ffa32ea65d5fda56bcb030643b989d5564c586 (patch)
tree984b9099172bbda4a8c37792131555de17d75899 /content/browser/host_zoom_map.h
parentc7b6a22a88e1333214f53550558d709abebdef44 (diff)
downloadchromium_src-13ffa32ea65d5fda56bcb030643b989d5564c586.zip
chromium_src-13ffa32ea65d5fda56bcb030643b989d5564c586.tar.gz
chromium_src-13ffa32ea65d5fda56bcb030643b989d5564c586.tar.bz2
Make sure that per-hostname zoom settings are retained.
BUG=83785 TEST=zoom settings are retained per hostname after browser shutdown. Review URL: http://codereview.chromium.org/7077031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/host_zoom_map.h')
-rw-r--r--content/browser/host_zoom_map.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/content/browser/host_zoom_map.h b/content/browser/host_zoom_map.h
index 5a923e3..6ec7492 100644
--- a/content/browser/host_zoom_map.h
+++ b/content/browser/host_zoom_map.h
@@ -31,21 +31,22 @@ class HostZoomMap :
public:
HostZoomMap();
- // Returns the zoom level for a given url. The zoom level is determined by
- // the host portion of the URL, or (in the absence of a host) the complete
- // spec of the URL. In most cases, there is no custom zoom level, and this
- // returns the user's default zoom level. Otherwise, returns the saved zoom
- // level, which may be positive (to zoom in) or negative (to zoom out).
+ // Returns the zoom level for the host or spec for a given url. The zoom
+ // level is determined by the host portion of the URL, or (in the absence of
+ // a host) the complete spec of the URL. In most cases, there is no custom
+ // zoom level, and this returns the user's default zoom level. Otherwise,
+ // returns the saved zoom level, which may be positive (to zoom in) or
+ // negative (to zoom out).
//
// This may be called on any thread.
- double GetZoomLevel(const GURL& url) const;
+ double GetZoomLevel(std::string host) const;
- // Sets the zoom level for a given url to |level|. If the level matches the
- // current default zoom level, the host is erased from the saved preferences;
- // otherwise the new value is written out.
+ // Sets the zoom level for the host or spec for a given url to |level|. If
+ // the level matches the current default zoom level, the host is erased
+ // from the saved preferences; otherwise the new value is written out.
//
// This should only be called on the UI thread.
- void SetZoomLevel(const GURL& url, double level);
+ void SetZoomLevel(std::string host, double level);
// Returns the temporary zoom level that's only valid for the lifetime of
// the given tab (i.e. isn't saved and doesn't affect other tabs) if it