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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 namespace base { | 41 namespace base { |
42 class SequencedTaskRunner; | 42 class SequencedTaskRunner; |
43 } | 43 } |
44 | 44 |
45 namespace domain_reliability { | 45 namespace domain_reliability { |
46 class DomainReliabilityMonitor; | 46 class DomainReliabilityMonitor; |
47 } | 47 } |
48 | 48 |
49 namespace policy { | 49 namespace policy { |
50 class CloudPolicyManager; | 50 class ConfigurationPolicyProvider; |
51 class ProfilePolicyConnector; | 51 class ProfilePolicyConnector; |
52 class SchemaRegistryService; | 52 class SchemaRegistryService; |
53 } | 53 } |
54 | 54 |
55 namespace ssl_config { | 55 namespace ssl_config { |
56 class SSLConfigServiceManager; | 56 class SSLConfigServiceManager; |
57 } | 57 } |
58 | 58 |
59 namespace sync_preferences { | 59 namespace sync_preferences { |
60 class PrefServiceSyncable; | 60 class PrefServiceSyncable; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 base::FilePath path_; | 196 base::FilePath path_; |
197 base::FilePath base_cache_path_; | 197 base::FilePath base_cache_path_; |
198 | 198 |
199 // !!! BIG HONKING WARNING !!! | 199 // !!! BIG HONKING WARNING !!! |
200 // The order of the members below is important. Do not change it unless | 200 // The order of the members below is important. Do not change it unless |
201 // you know what you're doing. Also, if adding a new member here make sure | 201 // you know what you're doing. Also, if adding a new member here make sure |
202 // that the declaration occurs AFTER things it depends on as destruction | 202 // that the declaration occurs AFTER things it depends on as destruction |
203 // happens in reverse order of declaration. | 203 // happens in reverse order of declaration. |
204 | 204 |
205 // TODO(mnissler, joaodasilva): The |profile_policy_connector_| provides the | 205 // TODO(mnissler, joaodasilva): The |profile_policy_connector_| provides the |
206 // PolicyService that the |prefs_| depend on, and must outlive |prefs_|. | 206 // PolicyService that the |prefs_| depend on, and must outlive |prefs_|. This |
207 // This can be removed once |prefs_| becomes a KeyedService too. | 207 // can be removed once |prefs_| becomes a KeyedService too. |
208 // |profile_policy_connector_| in turn depends on |cloud_policy_manager_|, | 208 // |profile_policy_connector_| in turn depends on |
209 // which depends on |schema_registry_service_|. | 209 // |configuration_policy_provider_|, which depends on |
| 210 // |schema_registry_service_|. |
210 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; | 211 std::unique_ptr<policy::SchemaRegistryService> schema_registry_service_; |
211 std::unique_ptr<policy::CloudPolicyManager> cloud_policy_manager_; | 212 std::unique_ptr<policy::ConfigurationPolicyProvider> |
| 213 configuration_policy_provider_; |
212 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 214 std::unique_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
213 | 215 |
214 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives | 216 // Keep |pref_validation_delegate_| above |prefs_| so that the former outlives |
215 // the latter. | 217 // the latter. |
216 std::unique_ptr<TrackedPreferenceValidationDelegate> | 218 std::unique_ptr<TrackedPreferenceValidationDelegate> |
217 pref_validation_delegate_; | 219 pref_validation_delegate_; |
218 | 220 |
219 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 221 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
220 // |io_data_| and others store pointers to |prefs_| and shall be destructed | 222 // |io_data_| and others store pointers to |prefs_| and shall be destructed |
221 // first. | 223 // first. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // components/keyed_service/content/browser_context_keyed_service_factory.* | 268 // components/keyed_service/content/browser_context_keyed_service_factory.* |
267 | 269 |
268 Profile::Delegate* delegate_; | 270 Profile::Delegate* delegate_; |
269 | 271 |
270 chrome_browser_net::Predictor* predictor_; | 272 chrome_browser_net::Predictor* predictor_; |
271 | 273 |
272 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
273 }; | 275 }; |
274 | 276 |
275 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |