| Index: chrome/browser/profiles/profile.h
|
| diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
|
| index 87a4c5fd6c31906e0bcfbec6026d9a7c52d9360e..c73d9af66dff8a1820bc58d5a3528d4eb0f5db38 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;
|
| @@ -384,7 +385,27 @@ 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();
|
| +
|
| + // Convenience method to retrieve the zoom level prefs for the default storage
|
| + // partition.
|
| + PrefService* GetZoomLevelPrefs();
|
| +
|
| + 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
|
|
|