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/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/profiles/profile_impl_io_data.h" | 20 #include "chrome/browser/profiles/profile_impl_io_data.h" |
21 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 21 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
22 #include "chrome/common/features.h" | 22 #include "chrome/common/features.h" |
23 #include "components/prefs/pref_change_registrar.h" | 23 #include "components/prefs/pref_change_registrar.h" |
24 #include "content/public/browser/content_browser_client.h" | 24 #include "content/public/browser/content_browser_client.h" |
25 #include "content/public/browser/host_zoom_map.h" | 25 #include "content/public/browser/host_zoom_map.h" |
| 26 #include "extensions/features/features.h" |
26 | 27 |
27 class PrefService; | 28 class PrefService; |
28 | 29 |
29 class TrackedPreferenceValidationDelegate; | 30 class TrackedPreferenceValidationDelegate; |
30 | 31 |
31 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
32 namespace chromeos { | 33 namespace chromeos { |
33 class KioskTest; | 34 class KioskTest; |
34 class LocaleChangeGuard; | 35 class LocaleChangeGuard; |
35 class Preferences; | 36 class Preferences; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 std::unique_ptr<TrackedPreferenceValidationDelegate> | 220 std::unique_ptr<TrackedPreferenceValidationDelegate> |
220 pref_validation_delegate_; | 221 pref_validation_delegate_; |
221 | 222 |
222 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 223 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
223 // |io_data_| and others store pointers to |prefs_| and shall be destructed | 224 // |io_data_| and others store pointers to |prefs_| and shall be destructed |
224 // first. | 225 // first. |
225 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 226 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
226 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; | 227 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; |
227 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; | 228 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; |
228 ProfileImplIOData::Handle io_data_; | 229 ProfileImplIOData::Handle io_data_; |
229 #if defined(ENABLE_EXTENSIONS) | 230 #if BUILDFLAG(ENABLE_EXTENSIONS) |
230 scoped_refptr<ExtensionSpecialStoragePolicy> | 231 scoped_refptr<ExtensionSpecialStoragePolicy> |
231 extension_special_storage_policy_; | 232 extension_special_storage_policy_; |
232 #endif | 233 #endif |
233 std::unique_ptr<ssl_config::SSLConfigServiceManager> | 234 std::unique_ptr<ssl_config::SSLConfigServiceManager> |
234 ssl_config_service_manager_; | 235 ssl_config_service_manager_; |
235 | 236 |
236 // 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 |
237 // prefs. | 238 // prefs. |
238 ExitType last_session_exit_type_; | 239 ExitType last_session_exit_type_; |
239 | 240 |
(...skipping 29 matching lines...) Expand all Loading... |
269 // components/keyed_service/content/browser_context_keyed_service_factory.* | 270 // components/keyed_service/content/browser_context_keyed_service_factory.* |
270 | 271 |
271 Profile::Delegate* delegate_; | 272 Profile::Delegate* delegate_; |
272 | 273 |
273 chrome_browser_net::Predictor* predictor_; | 274 chrome_browser_net::Predictor* predictor_; |
274 | 275 |
275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 276 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
276 }; | 277 }; |
277 | 278 |
278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 279 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |