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

Unified Diff: chrome/browser/profiles/profile.h

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests. Created 6 years, 1 month 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: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index dd744923a9e5f0a14e6486df58f558a56907a771..5070efa9b302e31116ee76492e65f2153d1ccfa5 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -15,6 +15,7 @@
#include "components/domain_reliability/clear_mode.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/host_zoom_map.h"
class ChromeAppCacheService;
class DevToolsNetworkController;
@@ -395,7 +396,23 @@ class Profile : public content::BrowserContext {
// Creates an OffTheRecordProfile which points to this Profile.
Profile* CreateOffTheRecordProfile();
+ // Convenience method to retrieve the default zoom level for the default
+ // storage partition.
+ double GetDefaultZoomLevel();
Fady Samuel 2014/11/03 22:11:11 nit: Can this be a const method?
wjmaclean 2014/11/04 19:34:25 Sadly, no, as the profile has to pass |this| to Ge
+
+ protected:
+ // Allows a profile to track changes in zoom levels in another profile.
+ // This function, along with TrackZoomLevelChanged(), are placed in Profile
+ // to facilitate testing with TestingProfile.
+ void TrackZoomLevelsFromParent(Profile* parent);
+
private:
+ // Callback function for tracking parent's zoom level changes.
+ void TrackZoomLevelChanged(
+ const content::HostZoomMap::ZoomLevelChange& change);
+
+ scoped_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_;
+
bool restored_last_session_;
// Used to prevent the notification that this Profile is destroyed from

Powered by Google App Engine
This is Rietveld 408576698