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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "chrome/browser/net/net_pref_observer.h" |
19 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/profiles/profile_impl_io_data.h" | 21 #include "chrome/browser/profiles/profile_impl_io_data.h" |
21 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 22 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
22 #include "chrome/common/features.h" | 23 #include "chrome/common/features.h" |
23 #include "components/prefs/pref_change_registrar.h" | 24 #include "components/prefs/pref_change_registrar.h" |
24 #include "content/public/browser/content_browser_client.h" | 25 #include "content/public/browser/content_browser_client.h" |
25 #include "content/public/browser/host_zoom_map.h" | 26 #include "content/public/browser/host_zoom_map.h" |
26 #include "extensions/features/features.h" | 27 #include "extensions/features/features.h" |
27 | 28 |
28 class PrefService; | 29 class PrefService; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 std::unique_ptr<policy::ConfigurationPolicyProvider> | 213 std::unique_ptr<policy::ConfigurationPolicyProvider> |
213 configuration_policy_provider_; | 214 configuration_policy_provider_; |
214 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 215 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
215 | 216 |
216 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives | 217 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives |
217 // the latter. | 218 // the latter. |
218 std::unique_ptr<TrackedPreferenceValidationDelegate> | 219 std::unique_ptr<TrackedPreferenceValidationDelegate> |
219 pref_validation_delegate_; | 220 pref_validation_delegate_; |
220 | 221 |
221 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 222 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
222 // |io_data_| and others store pointers to |prefs_| and shall be destructed | 223 // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and |
223 // first. | 224 // shall be destructed first. |
224 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 225 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
225 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; | 226 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; |
226 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; | 227 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; |
| 228 std::unique_ptr<NetPrefObserver> net_pref_observer_; |
227 ProfileImplIOData::Handle io_data_; | 229 ProfileImplIOData::Handle io_data_; |
228 #if BUILDFLAG(ENABLE_EXTENSIONS) | 230 #if BUILDFLAG(ENABLE_EXTENSIONS) |
229 scoped_refptr<ExtensionSpecialStoragePolicy> | 231 scoped_refptr<ExtensionSpecialStoragePolicy> |
230 extension_special_storage_policy_; | 232 extension_special_storage_policy_; |
231 #endif | 233 #endif |
232 std::unique_ptr<ssl_config::SSLConfigServiceManager> | 234 std::unique_ptr<ssl_config::SSLConfigServiceManager> |
233 ssl_config_service_manager_; | 235 ssl_config_service_manager_; |
234 | 236 |
235 // Exit type the last time the profile was opened. This is set only once from | 237 // Exit type the last time the profile was opened. This is set only once from |
236 // prefs. | 238 // prefs. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // components/keyed_service/content/browser_context_keyed_service_factory.* | 270 // components/keyed_service/content/browser_context_keyed_service_factory.* |
269 | 271 |
270 Profile::Delegate* delegate_; | 272 Profile::Delegate* delegate_; |
271 | 273 |
272 chrome_browser_net::Predictor* predictor_; | 274 chrome_browser_net::Predictor* predictor_; |
273 | 275 |
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 276 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
275 }; | 277 }; |
276 | 278 |
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 279 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |