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