Index: content/public/browser/browser_context.h |
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h |
index 147eab32d612742989f1c7045be97ff0ef926bd6..0d9d649c41a1bbcd7cb2e7d3a46cd5235d23c0c3 100644 |
--- a/content/public/browser/browser_context.h |
+++ b/content/public/browser/browser_context.h |
@@ -10,6 +10,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/supports_user_data.h" |
#include "content/common/content_export.h" |
+#include "content/public/browser/zoom_level_prefs_delegate.h" |
#include "content/public/common/push_messaging_status.h" |
class GURL; |
@@ -107,8 +108,21 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
// across the next restart. |
static void SaveSessionState(BrowserContext* browser_context); |
+ // Changes the default zoom level for all current storage partitions. |
+ static void SetDefaultZoomLevel(BrowserContext* browser_context, |
+ double level); |
+ |
virtual ~BrowserContext(); |
+ // Returns the default zoom level. |
+ virtual double GetDefaultZoomLevel() const; |
+ |
+ // Override to provide for creation of a delegate that can be used to persist |
+ // data stored in a HostZoomMap. The delegate is used to initialize the |
+ // HostZoomMap and persist its information. This is called during creation |
+ // of each StoragePartition. |
+ virtual scoped_ptr<ZoomLevelPrefsDelegate> CreateZoomLevelPrefsDelegate(); |
+ |
// Returns the path of the directory where this context's data is stored. |
virtual base::FilePath GetPath() const = 0; |