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 05ba574c5ebe3c5795f8c617d16d62d14de42227..8271be772bebaa46484a47c43f2560d1134369b4 100644 |
--- a/content/public/browser/host_zoom_map.h |
+++ b/content/public/browser/host_zoom_map.h |
@@ -102,13 +102,28 @@ class HostZoomMap { |
const std::string& host, |
double level) = 0; |
+ // Sets the temporary zoom level that's only valid for the lifetime of this |
+ // WebContents. |
+ // |
+ // This should only be called on the UI thread. |
+ virtual void SetTemporaryZoomLevel(int render_process_id, |
+ int render_view_id, |
+ const std::string& host, |
+ double level) = 0; |
+ |
+ // Erases the temporary zoom level stored for this WebContents. |
+ // |
+ // This should only be called on the UI thread. |
+ virtual void EraseTemporaryZoomLevel(int render_process_id, |
+ int render_view_id) = 0; |
+ |
// Get/Set the default zoom level for pages that don't override it. |
virtual double GetDefaultZoomLevel() const = 0; |
virtual void SetDefaultZoomLevel(double level) = 0;; |
typedef base::Callback<void(const ZoomLevelChange&)> ZoomLevelChangedCallback; |
typedef base::CallbackList<void(const ZoomLevelChange&)>::Subscription |
- Subscription; |
+ Subscription; |
// Add and remove zoom level changed callbacks. |
virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback( |
const ZoomLevelChangedCallback& callback) = 0; |