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

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

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix alignment, add comment Created 7 years, 10 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c399f699aec489aa3a1d524aab15b6ab08d120ce..fbae6bbb6f2d881bd347e4848a88a8daaf542b5d 100644
--- a/content/public/browser/host_zoom_map.h
+++ b/content/public/browser/host_zoom_map.h
@@ -38,14 +38,31 @@ class HostZoomMap {
// negative (to zoom out).
//
// This may be called on any thread.
- virtual double GetZoomLevel(const std::string& host) const = 0;
+ virtual double GetZoomLevelForHost(const std::string& host) const = 0;
sky 2013/02/12 18:47:15 How can we can keep this exposed as public? Doing
+
+ // Returns the zoom level for the host or spec for a given url, taking
sky 2013/02/12 18:47:15 Update description for both this and GetZoomLevelF
+ // |scheme| in account. If there is specific zoom level specified for given
+ // |scheme| and |host| pair, it will be returned. In other cases result is
+ // equivalent to GetZoomLevelForHost(host).
+ //
+ // This may be called on any thread.
+ virtual double GetZoomLevelForHostAndScheme(
+ const std::string& scheme,
+ const std::string& host) const = 0;
// 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.
- virtual void SetZoomLevel(const std::string& host, double level) = 0;
+ virtual void SetZoomLevelForHost(const std::string& host, double level) = 0;
+
+ // Sets the zoom level for the |scheme|/|host| pair to |level|.
+ //
+ // This should only be called on the UI thread.
+ virtual void SetZoomLevelForHostAndScheme(const std::string& scheme,
+ const std::string& host,
+ double level) = 0;
// Get/Set the default zoom level for pages that don't override it.
virtual double GetDefaultZoomLevel() const = 0;
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698