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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual ExtensionService* GetExtensionService() OVERRIDE; | 80 virtual ExtensionService* GetExtensionService() OVERRIDE; |
81 virtual extensions::UserScriptMaster* GetUserScriptMaster() OVERRIDE; | 81 virtual extensions::UserScriptMaster* GetUserScriptMaster() OVERRIDE; |
82 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; | 82 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; |
83 virtual extensions::EventRouter* GetExtensionEventRouter() OVERRIDE; | 83 virtual extensions::EventRouter* GetExtensionEventRouter() OVERRIDE; |
84 virtual ExtensionSpecialStoragePolicy* | 84 virtual ExtensionSpecialStoragePolicy* |
85 GetExtensionSpecialStoragePolicy() OVERRIDE; | 85 GetExtensionSpecialStoragePolicy() OVERRIDE; |
86 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; | 86 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; |
87 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; | 87 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; |
88 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; | 88 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; |
89 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 89 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
| 90 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() OVERRIDE; |
90 virtual policy::PolicyService* GetPolicyService() OVERRIDE; | 91 virtual policy::PolicyService* GetPolicyService() OVERRIDE; |
91 virtual PrefService* GetPrefs() OVERRIDE; | 92 virtual PrefService* GetPrefs() OVERRIDE; |
92 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 93 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
93 virtual net::URLRequestContextGetter* | 94 virtual net::URLRequestContextGetter* |
94 GetRequestContextForExtensions() OVERRIDE; | 95 GetRequestContextForExtensions() OVERRIDE; |
95 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 96 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
96 const std::string& app_id) OVERRIDE; | 97 const std::string& app_id) OVERRIDE; |
97 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 98 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
98 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 99 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
99 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 100 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 180 |
180 FilePath path_; | 181 FilePath path_; |
181 FilePath base_cache_path_; | 182 FilePath base_cache_path_; |
182 | 183 |
183 // !!! BIG HONKING WARNING !!! | 184 // !!! BIG HONKING WARNING !!! |
184 // The order of the members below is important. Do not change it unless | 185 // The order of the members below is important. Do not change it unless |
185 // you know what you're doing. Also, if adding a new member here make sure | 186 // you know what you're doing. Also, if adding a new member here make sure |
186 // that the declaration occurs AFTER things it depends on as destruction | 187 // that the declaration occurs AFTER things it depends on as destruction |
187 // happens in reverse order of declaration. | 188 // happens in reverse order of declaration. |
188 | 189 |
189 // |prefs_| depends on |policy_service_|. | 190 // |prefs_| depends on |policy_service_|, which depends on |
190 // TODO(bauerb): Once |prefs_| is a ProfileKeyedService, |policy_service_| | 191 // |user_cloud_policy_manager_|. |
191 // should become one as well. | 192 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, |
| 193 // |policy_service_| and |user_cloud_policy_manager_| should become |
| 194 // ProfiledKeyedServices as well. |
| 195 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; |
192 scoped_ptr<policy::PolicyService> policy_service_; | 196 scoped_ptr<policy::PolicyService> policy_service_; |
193 | 197 |
194 // Keep |prefs_| on top for destruction order because |extension_prefs_|, | 198 // Keep |prefs_| on top for destruction order because |extension_prefs_|, |
195 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store | 199 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store |
196 // pointers to |prefs_| and shall be destructed first. | 200 // pointers to |prefs_| and shall be destructed first. |
197 scoped_ptr<PrefService> prefs_; | 201 scoped_ptr<PrefService> prefs_; |
198 scoped_ptr<PrefService> otr_prefs_; | 202 scoped_ptr<PrefService> otr_prefs_; |
199 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; | 203 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
200 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 204 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
201 ProfileImplIOData::Handle io_data_; | 205 ProfileImplIOData::Handle io_data_; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 Profile::Delegate* delegate_; | 258 Profile::Delegate* delegate_; |
255 | 259 |
256 chrome_browser_net::Predictor* predictor_; | 260 chrome_browser_net::Predictor* predictor_; |
257 | 261 |
258 bool session_restore_enabled_; | 262 bool session_restore_enabled_; |
259 | 263 |
260 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 264 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
261 }; | 265 }; |
262 | 266 |
263 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 267 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |