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 #include "extensions/features/features.h" |
27 | 27 |
28 class PrefService; | 28 class PrefService; |
29 | 29 |
30 class TrackedPreferenceValidationDelegate; | |
31 | |
32 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
33 namespace chromeos { | 31 namespace chromeos { |
34 class KioskTest; | 32 class KioskTest; |
35 class LocaleChangeGuard; | 33 class LocaleChangeGuard; |
36 class Preferences; | 34 class Preferences; |
37 class SupervisedUserTestBase; | 35 class SupervisedUserTestBase; |
38 } | 36 } |
39 #endif | 37 #endif |
40 | 38 |
41 namespace base { | 39 namespace base { |
42 class SequencedTaskRunner; | 40 class SequencedTaskRunner; |
43 } | 41 } |
44 | 42 |
45 namespace domain_reliability { | 43 namespace domain_reliability { |
46 class DomainReliabilityMonitor; | 44 class DomainReliabilityMonitor; |
47 } | 45 } |
48 | 46 |
49 namespace policy { | 47 namespace policy { |
50 class ConfigurationPolicyProvider; | 48 class ConfigurationPolicyProvider; |
51 class ProfilePolicyConnector; | 49 class ProfilePolicyConnector; |
52 class SchemaRegistryService; | 50 class SchemaRegistryService; |
53 } | 51 } |
54 | 52 |
| 53 namespace prefs { |
| 54 namespace mojom { |
| 55 class TrackedPreferenceValidationDelegate; |
| 56 } |
| 57 } |
| 58 |
55 namespace ssl_config { | 59 namespace ssl_config { |
56 class SSLConfigServiceManager; | 60 class SSLConfigServiceManager; |
57 } | 61 } |
58 | 62 |
59 namespace sync_preferences { | 63 namespace sync_preferences { |
60 class PrefServiceSyncable; | 64 class PrefServiceSyncable; |
61 } | 65 } |
62 | 66 |
63 namespace user_prefs { | 67 namespace user_prefs { |
64 class PrefRegistrySyncable; | 68 class PrefRegistrySyncable; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // |profile_policy_connector_| in turn depends on | 212 // |profile_policy_connector_| in turn depends on |
209 // |configuration_policy_provider_|, which depends on | 213 // |configuration_policy_provider_|, which depends on |
210 // |schema_registry_service_|. | 214 // |schema_registry_service_|. |
211 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; | 215 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; |
212 std::unique_ptr<policy::ConfigurationPolicyProvider> | 216 std::unique_ptr<policy::ConfigurationPolicyProvider> |
213 configuration_policy_provider_; | 217 configuration_policy_provider_; |
214 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 218 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
215 | 219 |
216 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives | 220 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives |
217 // the latter. | 221 // the latter. |
218 std::unique_ptr<TrackedPreferenceValidationDelegate> | 222 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate> |
219 pref_validation_delegate_; | 223 pref_validation_delegate_; |
220 | 224 |
221 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 225 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
222 // |io_data_| and others store pointers to |prefs_| and shall be destructed | 226 // |io_data_| and others store pointers to |prefs_| and shall be destructed |
223 // first. | 227 // first. |
224 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 228 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
225 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; | 229 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; |
226 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; | 230 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; |
227 ProfileImplIOData::Handle io_data_; | 231 ProfileImplIOData::Handle io_data_; |
228 #if BUILDFLAG(ENABLE_EXTENSIONS) | 232 #if BUILDFLAG(ENABLE_EXTENSIONS) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // components/keyed_service/content/browser_context_keyed_service_factory.* | 272 // components/keyed_service/content/browser_context_keyed_service_factory.* |
269 | 273 |
270 Profile::Delegate* delegate_; | 274 Profile::Delegate* delegate_; |
271 | 275 |
272 chrome_browser_net::Predictor* predictor_; | 276 chrome_browser_net::Predictor* predictor_; |
273 | 277 |
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
275 }; | 279 }; |
276 | 280 |
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |