Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "chrome/browser/net/net_pref_observer.h" | |
| 12 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" | 13 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser_list.h" | 15 #include "chrome/browser/ui/browser_list.h" |
| 15 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 16 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 16 #include "components/domain_reliability/clear_mode.h" | 17 #include "components/domain_reliability/clear_mode.h" |
| 17 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
| 18 #include "content/public/browser/host_zoom_map.h" | 19 #include "content/public/browser/host_zoom_map.h" |
| 19 | 20 |
| 20 using base::Time; | 21 using base::Time; |
| 21 using base::TimeDelta; | 22 using base::TimeDelta; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 #if defined(OS_ANDROID) | 116 #if defined(OS_ANDROID) |
| 116 void UseSystemProxy(); | 117 void UseSystemProxy(); |
| 117 #endif // defined(OS_ANDROID) | 118 #endif // defined(OS_ANDROID) |
| 118 | 119 |
| 119 PrefProxyConfigTracker* CreateProxyConfigTracker(); | 120 PrefProxyConfigTracker* CreateProxyConfigTracker(); |
| 120 // Callback function for tracking parent's zoom level changes. | 121 // Callback function for tracking parent's zoom level changes. |
| 121 void OnParentZoomLevelChanged( | 122 void OnParentZoomLevelChanged( |
| 122 const content::HostZoomMap::ZoomLevelChange& change); | 123 const content::HostZoomMap::ZoomLevelChange& change); |
| 123 void UpdateDefaultZoomLevel(); | 124 void UpdateDefaultZoomLevel(); |
| 124 | 125 |
| 126 // Called on IO thread thread when net parameters change. | |
| 127 void UpdateNetParamsOnIOThread( | |
| 128 net::HttpNetworkSession::ParamsUpdate params_update); | |
|
mmenke
2017/01/06 16:18:43
include http_network_session.h
pmarko
2017/01/08 20:51:48
Not necessary anymore as NetHttpSessionParamsObser
| |
| 125 // The real underlying profile. | 129 // The real underlying profile. |
| 126 Profile* profile_; | 130 Profile* profile_; |
| 127 | 131 |
| 128 // Weak pointer owned by |profile_|. | 132 // Weak pointer owned by |profile_|. |
| 129 sync_preferences::PrefServiceSyncable* prefs_; | 133 sync_preferences::PrefServiceSyncable* prefs_; |
| 130 | 134 |
| 135 // Observes |prefs_| for net parameter changes. | |
| 136 std::unique_ptr<NetPrefObserver> net_pref_observer_; | |
|
mmenke
2017/01/06 16:18:43
include <memory>
pmarko
2017/01/08 20:51:48
Not necessary anymore as NetHttpSessionParamsObser
| |
| 137 | |
| 131 std::unique_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_; | 138 std::unique_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_; |
| 132 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> | 139 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> |
| 133 parent_default_zoom_level_subscription_; | 140 parent_default_zoom_level_subscription_; |
| 134 std::unique_ptr<OffTheRecordProfileIOData::Handle> io_data_; | 141 std::unique_ptr<OffTheRecordProfileIOData::Handle> io_data_; |
| 135 | 142 |
| 136 // Time we were started. | 143 // Time we were started. |
| 137 Time start_time_; | 144 Time start_time_; |
| 138 | 145 |
| 139 base::FilePath last_selected_directory_; | 146 base::FilePath last_selected_directory_; |
| 140 | 147 |
| 141 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 148 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 142 | 149 |
| 143 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 150 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
| 144 }; | 151 }; |
| 145 | 152 |
| 146 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 153 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| OLD | NEW |