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

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

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 291677. Created 6 years, 4 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
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index 25190a6f8618330620b47c1943db036a300c6b22..e5d7b8a7a85fbda8914d3fc10db35e56a7e44315 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_store.h"
#include "content/public/common/push_messaging_status.h"
class GURL;
@@ -109,6 +110,12 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
virtual ~BrowserContext();
+ // 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<ZoomLevelPrefsStore> CreateZoomLevelPrefsStore();
+
// Returns the path of the directory where this context's data is stored.
virtual base::FilePath GetPath() const = 0;

Powered by Google App Engine
This is Rietveld 408576698