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> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 namespace domain_reliability { | 43 namespace domain_reliability { |
44 class DomainReliabilityMonitor; | 44 class DomainReliabilityMonitor; |
45 } | 45 } |
46 | 46 |
47 namespace policy { | 47 namespace policy { |
48 class ConfigurationPolicyProvider; | 48 class ConfigurationPolicyProvider; |
49 class ProfilePolicyConnector; | 49 class ProfilePolicyConnector; |
50 class SchemaRegistryService; | 50 class SchemaRegistryService; |
51 } | 51 } |
52 | 52 |
| 53 namespace prefs { |
| 54 namespace mojom { |
| 55 class TrackedPreferenceValidationDelegate; |
| 56 } |
| 57 } |
| 58 |
53 namespace ssl_config { | 59 namespace ssl_config { |
54 class SSLConfigServiceManager; | 60 class SSLConfigServiceManager; |
55 } | 61 } |
56 | 62 |
57 namespace sync_preferences { | 63 namespace sync_preferences { |
58 class PrefServiceSyncable; | 64 class PrefServiceSyncable; |
59 } | 65 } |
60 | 66 |
61 namespace user_prefs { | 67 namespace user_prefs { |
62 class PrefRegistrySyncable; | 68 class PrefRegistrySyncable; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // PolicyService that the |prefs_| depend on, and must outlive |prefs_|. This | 215 // PolicyService that the |prefs_| depend on, and must outlive |prefs_|. This |
210 // can be removed once |prefs_| becomes a KeyedService too. | 216 // can be removed once |prefs_| becomes a KeyedService too. |
211 // |profile_policy_connector_| in turn depends on | 217 // |profile_policy_connector_| in turn depends on |
212 // |configuration_policy_provider_|, which depends on | 218 // |configuration_policy_provider_|, which depends on |
213 // |schema_registry_service_|. | 219 // |schema_registry_service_|. |
214 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; | 220 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; |
215 std::unique_ptr<policy::ConfigurationPolicyProvider> | 221 std::unique_ptr<policy::ConfigurationPolicyProvider> |
216 configuration_policy_provider_; | 222 configuration_policy_provider_; |
217 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 223 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
218 | 224 |
| 225 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives |
| 226 // the latter. |
| 227 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate> |
| 228 pref_validation_delegate_; |
| 229 |
219 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 230 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
220 // |io_data_| and others store pointers to |prefs_| and shall be destructed | 231 // |io_data_| and others store pointers to |prefs_| and shall be destructed |
221 // first. | 232 // first. |
222 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 233 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
223 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; | 234 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; |
224 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; | 235 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; |
225 ProfileImplIOData::Handle io_data_; | 236 ProfileImplIOData::Handle io_data_; |
226 #if BUILDFLAG(ENABLE_EXTENSIONS) | 237 #if BUILDFLAG(ENABLE_EXTENSIONS) |
227 scoped_refptr<ExtensionSpecialStoragePolicy> | 238 scoped_refptr<ExtensionSpecialStoragePolicy> |
228 extension_special_storage_policy_; | 239 extension_special_storage_policy_; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // components/keyed_service/content/browser_context_keyed_service_factory.* | 277 // components/keyed_service/content/browser_context_keyed_service_factory.* |
267 | 278 |
268 Profile::Delegate* delegate_; | 279 Profile::Delegate* delegate_; |
269 | 280 |
270 chrome_browser_net::Predictor* predictor_; | 281 chrome_browser_net::Predictor* predictor_; |
271 | 282 |
272 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 283 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
273 }; | 284 }; |
274 | 285 |
275 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 286 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |