Chromium Code Reviews| Index: chrome/browser/profiles/off_the_record_profile_impl.h |
| diff --git a/chrome/browser/profiles/off_the_record_profile_impl.h b/chrome/browser/profiles/off_the_record_profile_impl.h |
| index 53e0621e2864432bf8407dc3eabb60a203b0539c..2467a123a4205694a019012cf16b1dd3393415f5 100644 |
| --- a/chrome/browser/profiles/off_the_record_profile_impl.h |
| +++ b/chrome/browser/profiles/off_the_record_profile_impl.h |
| @@ -84,6 +84,8 @@ class OffTheRecordProfileImpl : public Profile { |
| // content::BrowserContext implementation: |
| base::FilePath GetPath() const override; |
| + scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
| + const base::FilePath& partition_path) override; |
| scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; |
| bool IsOffTheRecord() const override; |
| content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| @@ -102,17 +104,20 @@ class OffTheRecordProfileImpl : public Profile { |
| content::PushMessagingService* GetPushMessagingService() override; |
| content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| + |
|
Charlie Reis
2014/11/11 05:29:22
nit: Remove extra line.
wjmaclean
2014/11/11 19:20:52
Done.
|
| private: |
| - FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); |
| void InitIoData(); |
| - void InitHostZoomMap(); |
| + // Allows a profile to track changes in zoom levels in its parent profile. |
| + void TrackZoomLevelsFromParent(); |
| #if defined(OS_ANDROID) || defined(OS_IOS) |
| void UseSystemProxy(); |
| #endif // defined(OS_ANDROID) || defined(OS_IOS) |
| - void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change); |
| PrefProxyConfigTracker* CreateProxyConfigTracker(); |
| + // Callback function for tracking parent's zoom level changes. |
| + void OnParentZoomLevelChanged( |
| + const content::HostZoomMap::ZoomLevelChange& change); |
| // The real underlying profile. |
| Profile* profile_; |
| @@ -120,6 +125,7 @@ class OffTheRecordProfileImpl : public Profile { |
| // Weak pointer owned by |profile_|. |
| PrefServiceSyncable* prefs_; |
| + scoped_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_; |
| scoped_ptr<OffTheRecordProfileIOData::Handle> io_data_; |
| // We use a non-persistent content settings map for OTR. |
| @@ -132,8 +138,6 @@ class OffTheRecordProfileImpl : public Profile { |
| scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| - scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_; |
| - |
| DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
| }; |