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 <string> | 10 #include <string> |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // that the declaration occurs AFTER things it depends on as destruction | 201 // that the declaration occurs AFTER things it depends on as destruction |
202 // happens in reverse order of declaration. | 202 // happens in reverse order of declaration. |
203 | 203 |
204 #if defined(ENABLE_CONFIGURATION_POLICY) | 204 #if defined(ENABLE_CONFIGURATION_POLICY) |
205 // |prefs_| depends on |policy_service_|, which depends on | 205 // |prefs_| depends on |policy_service_|, which depends on |
206 // |user_cloud_policy_manager_| and |managed_mode_policy_provider_|. | 206 // |user_cloud_policy_manager_| and |managed_mode_policy_provider_|. |
207 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these | 207 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these |
208 // should become proper ProfileKeyedServices as well. | 208 // should become proper ProfileKeyedServices as well. |
209 #if !defined(OS_CHROMEOS) | 209 #if !defined(OS_CHROMEOS) |
210 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; | 210 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; |
211 #endif | 211 #endif // !defined(OS_CHROMEOS) |
| 212 #if defined(ENABLE_MANAGED_USERS) |
212 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_; | 213 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_; |
213 #endif | 214 #endif // defined(ENABLE_MANAGED_USERS) |
| 215 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
214 scoped_ptr<policy::PolicyService> policy_service_; | 216 scoped_ptr<policy::PolicyService> policy_service_; |
215 | 217 |
216 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 218 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
217 // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and | 219 // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and |
218 // shall be destructed first. | 220 // shall be destructed first. |
219 scoped_refptr<PrefRegistrySyncable> pref_registry_; | 221 scoped_refptr<PrefRegistrySyncable> pref_registry_; |
220 scoped_ptr<PrefServiceSyncable> prefs_; | 222 scoped_ptr<PrefServiceSyncable> prefs_; |
221 scoped_ptr<PrefServiceSyncable> otr_prefs_; | 223 scoped_ptr<PrefServiceSyncable> otr_prefs_; |
222 ProfileImplIOData::Handle io_data_; | 224 ProfileImplIOData::Handle io_data_; |
223 scoped_refptr<ExtensionSpecialStoragePolicy> | 225 scoped_refptr<ExtensionSpecialStoragePolicy> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} | 270 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} |
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 |