Index: content/browser/host_zoom_map_impl.h |
diff --git a/content/browser/host_zoom_map_impl.h b/content/browser/host_zoom_map_impl.h |
index 0ad4fec46bf74ec0482d3b283488c0b0c265028b..2755fbc1751923b80e1ace2621b4a1dae353b61a 100644 |
--- a/content/browser/host_zoom_map_impl.h |
+++ b/content/browser/host_zoom_map_impl.h |
@@ -35,6 +35,8 @@ class CONTENT_EXPORT HostZoomMapImpl : public NON_EXPORTED_BASE(HostZoomMap), |
virtual double GetZoomLevelForHostAndScheme( |
const std::string& scheme, |
const std::string& host) const OVERRIDE; |
+ virtual bool HasZoomLevelInMap(const std::string& scheme, |
+ const std::string& host) const OVERRIDE; |
virtual ZoomLevelVector GetAllZoomLevels() const OVERRIDE; |
virtual void SetZoomLevelForHost( |
const std::string& host, |
@@ -43,6 +45,13 @@ class CONTENT_EXPORT HostZoomMapImpl : public NON_EXPORTED_BASE(HostZoomMap), |
const std::string& scheme, |
const std::string& host, |
double level) OVERRIDE; |
+ virtual void SetTemporaryZoomLevel(int render_process_id, |
+ int render_view_id, |
+ const std::string& host, |
+ double level, |
+ bool send_level_to_view) OVERRIDE; |
+ virtual void EraseTemporaryZoomLevel(int render_process_id, |
+ int render_view_id) OVERRIDE; |
virtual double GetDefaultZoomLevel() const OVERRIDE; |
virtual void SetDefaultZoomLevel(double level) OVERRIDE; |
virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback( |
@@ -85,14 +94,6 @@ class CONTENT_EXPORT HostZoomMapImpl : public NON_EXPORTED_BASE(HostZoomMap), |
double GetTemporaryZoomLevel(int render_process_id, |
int render_view_id) const; |
- // Sets the temporary zoom level that's only valid for the lifetime of this |
- // WebContents. |
- // |
- // This should only be called on the UI thread. |
- void SetTemporaryZoomLevel(int render_process_id, |
- int render_view_id, |
- double level); |
- |
// NotificationObserver implementation. |
virtual void Observe(int type, |
const NotificationSource& source, |
@@ -116,6 +117,17 @@ class CONTENT_EXPORT HostZoomMapImpl : public NON_EXPORTED_BASE(HostZoomMap), |
double GetZoomLevelForHost(const std::string& host) const; |
+ // Notify a particular render view to change its zoom level. |
+ void SendZoomLevelChange(int render_process_id, |
+ int render_view_id, |
+ double level); |
+ |
+ // Notifies the renderers from this browser context to change the zoom level |
+ // for the specified host and scheme. |
+ void SendZoomLevelChange(const std::string& scheme, |
+ const std::string& host, |
+ double level); |
+ |
// Callbacks called when zoom level changes. |
base::CallbackList<void(const ZoomLevelChange&)> |
zoom_level_changed_callbacks_; |