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; |