| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; | 213 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; |
| 214 std::unique_ptr<policy::CloudPolicyManager> cloud_policy_manager_; | 214 std::unique_ptr<policy::CloudPolicyManager> cloud_policy_manager_; |
| 215 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 215 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
| 216 | 216 |
| 217 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives | 217 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives |
| 218 // the latter. | 218 // the latter. |
| 219 std::unique_ptr<TrackedPreferenceValidationDelegate> | 219 std::unique_ptr<TrackedPreferenceValidationDelegate> |
| 220 pref_validation_delegate_; | 220 pref_validation_delegate_; |
| 221 | 221 |
| 222 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 222 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
| 223 // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and | 223 // |io_data_| and others store pointers to |prefs_| and shall be destructed |
| 224 // shall be destructed first. | 224 // first. |
| 225 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 225 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
| 226 std::unique_ptr<syncable_prefs::PrefServiceSyncable> prefs_; | 226 std::unique_ptr<syncable_prefs::PrefServiceSyncable> prefs_; |
| 227 std::unique_ptr<syncable_prefs::PrefServiceSyncable> otr_prefs_; | 227 std::unique_ptr<syncable_prefs::PrefServiceSyncable> otr_prefs_; |
| 228 ProfileImplIOData::Handle io_data_; | 228 ProfileImplIOData::Handle io_data_; |
| 229 #if defined(ENABLE_EXTENSIONS) | 229 #if defined(ENABLE_EXTENSIONS) |
| 230 scoped_refptr<ExtensionSpecialStoragePolicy> | 230 scoped_refptr<ExtensionSpecialStoragePolicy> |
| 231 extension_special_storage_policy_; | 231 extension_special_storage_policy_; |
| 232 #endif | 232 #endif |
| 233 std::unique_ptr<NetPrefObserver> net_pref_observer_; | |
| 234 std::unique_ptr<ssl_config::SSLConfigServiceManager> | 233 std::unique_ptr<ssl_config::SSLConfigServiceManager> |
| 235 ssl_config_service_manager_; | 234 ssl_config_service_manager_; |
| 236 | 235 |
| 237 // Exit type the last time the profile was opened. This is set only once from | 236 // Exit type the last time the profile was opened. This is set only once from |
| 238 // prefs. | 237 // prefs. |
| 239 ExitType last_session_exit_type_; | 238 ExitType last_session_exit_type_; |
| 240 | 239 |
| 241 #if defined(ENABLE_SESSION_SERVICE) | 240 #if defined(ENABLE_SESSION_SERVICE) |
| 242 base::OneShotTimer create_session_service_timer_; | 241 base::OneShotTimer create_session_service_timer_; |
| 243 #endif | 242 #endif |
| (...skipping 26 matching lines...) Expand all Loading... |
| 270 // components/keyed_service/content/browser_context_keyed_service_factory.* | 269 // components/keyed_service/content/browser_context_keyed_service_factory.* |
| 271 | 270 |
| 272 Profile::Delegate* delegate_; | 271 Profile::Delegate* delegate_; |
| 273 | 272 |
| 274 chrome_browser_net::Predictor* predictor_; | 273 chrome_browser_net::Predictor* predictor_; |
| 275 | 274 |
| 276 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 277 }; | 276 }; |
| 278 | 277 |
| 279 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |