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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // |schema_registry_service_|. | 210 // |schema_registry_service_|. |
211 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; | 211 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; |
212 std::unique_ptr<policy::ConfigurationPolicyProvider> | 212 std::unique_ptr<policy::ConfigurationPolicyProvider> |
213 configuration_policy_provider_; | 213 configuration_policy_provider_; |
214 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 214 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
215 | 215 |
216 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives | 216 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives |
217 // the latter. | 217 // the latter. |
218 std::unique_ptr<TrackedPreferenceValidationDelegate> | 218 std::unique_ptr<TrackedPreferenceValidationDelegate> |
219 pref_validation_delegate_; | 219 pref_validation_delegate_; |
| 220 std::unique_ptr<base::WeakPtrFactory<TrackedPreferenceValidationDelegate>> |
| 221 pref_validation_delegate_weak_factory_; |
220 | 222 |
221 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 223 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
222 // |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 |
223 // first. | 225 // first. |
224 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 226 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
225 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; | 227 std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_; |
226 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; | 228 std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_; |
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> |
(...skipping 38 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 |