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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 101 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
102 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 102 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
103 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 103 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
104 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 104 virtual bool IsSameProfile(Profile* profile) OVERRIDE; |
105 virtual base::Time GetStartTime() const OVERRIDE; | 105 virtual base::Time GetStartTime() const OVERRIDE; |
106 virtual void MarkAsCleanShutdown() OVERRIDE; | 106 virtual void MarkAsCleanShutdown() OVERRIDE; |
107 virtual void InitPromoResources() OVERRIDE; | 107 virtual void InitPromoResources() OVERRIDE; |
108 virtual void InitRegisteredProtocolHandlers() OVERRIDE; | 108 virtual void InitRegisteredProtocolHandlers() OVERRIDE; |
109 virtual FilePath last_selected_directory() OVERRIDE; | 109 virtual FilePath last_selected_directory() OVERRIDE; |
110 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 110 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
111 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; | |
112 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 111 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
113 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; | 112 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; |
114 virtual GURL GetHomePage() OVERRIDE; | 113 virtual GURL GetHomePage() OVERRIDE; |
115 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 114 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
116 | 115 |
117 #if defined(OS_CHROMEOS) | 116 #if defined(OS_CHROMEOS) |
118 virtual void ChangeAppLocale(const std::string& locale, | 117 virtual void ChangeAppLocale(const std::string& locale, |
119 AppLocaleChangedVia) OVERRIDE; | 118 AppLocaleChangedVia) OVERRIDE; |
120 virtual void OnLogin() OVERRIDE; | 119 virtual void OnLogin() OVERRIDE; |
121 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; | 120 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void UpdateProfileUserNameCache(); | 168 void UpdateProfileUserNameCache(); |
170 | 169 |
171 // Updates the ProfileInfoCache with data from this profile. | 170 // Updates the ProfileInfoCache with data from this profile. |
172 void UpdateProfileNameCache(); | 171 void UpdateProfileNameCache(); |
173 void UpdateProfileAvatarCache(); | 172 void UpdateProfileAvatarCache(); |
174 | 173 |
175 void GetCacheParameters(bool is_media_context, | 174 void GetCacheParameters(bool is_media_context, |
176 FilePath* cache_path, | 175 FilePath* cache_path, |
177 int* max_size); | 176 int* max_size); |
178 | 177 |
| 178 virtual base::Callback<ChromeURLDataManagerBackend*(void)> |
| 179 GetChromeURLDataManagerBackendGetter() const OVERRIDE; |
| 180 |
179 content::NotificationRegistrar registrar_; | 181 content::NotificationRegistrar registrar_; |
180 PrefChangeRegistrar pref_change_registrar_; | 182 PrefChangeRegistrar pref_change_registrar_; |
181 | 183 |
182 FilePath path_; | 184 FilePath path_; |
183 FilePath base_cache_path_; | 185 FilePath base_cache_path_; |
184 | 186 |
185 // !!! BIG HONKING WARNING !!! | 187 // !!! BIG HONKING WARNING !!! |
186 // The order of the members below is important. Do not change it unless | 188 // The order of the members below is important. Do not change it unless |
187 // you know what you're doing. Also, if adding a new member here make sure | 189 // you know what you're doing. Also, if adding a new member here make sure |
188 // that the declaration occurs AFTER things it depends on as destruction | 190 // that the declaration occurs AFTER things it depends on as destruction |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 245 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
244 | 246 |
245 scoped_ptr<chromeos::EnterpriseExtensionObserver> | 247 scoped_ptr<chromeos::EnterpriseExtensionObserver> |
246 chromeos_enterprise_extension_observer_; | 248 chromeos_enterprise_extension_observer_; |
247 | 249 |
248 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; | 250 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; |
249 #endif | 251 #endif |
250 | 252 |
251 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 253 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
252 | 254 |
253 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | |
254 | |
255 // STOP!!!! DO NOT ADD ANY MORE ITEMS HERE!!!! | 255 // STOP!!!! DO NOT ADD ANY MORE ITEMS HERE!!!! |
256 // | 256 // |
257 // Instead, make your Service/Manager/whatever object you're hanging off the | 257 // Instead, make your Service/Manager/whatever object you're hanging off the |
258 // Profile use our new ProfileKeyedServiceFactory system instead. You can | 258 // Profile use our new ProfileKeyedServiceFactory system instead. You can |
259 // find the design document here: | 259 // find the design document here: |
260 // | 260 // |
261 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/p
rofile-architecture | 261 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/p
rofile-architecture |
262 // | 262 // |
263 // and you can read the raw headers here: | 263 // and you can read the raw headers here: |
264 // | 264 // |
265 // chrome/browser/profile/profile_keyed_service.h | 265 // chrome/browser/profile/profile_keyed_service.h |
266 // chrome/browser/profile/profile_keyed_service_factory.{h,cc} | 266 // chrome/browser/profile/profile_keyed_service_factory.{h,cc} |
267 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} | 267 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} |
268 | 268 |
269 Profile::Delegate* delegate_; | 269 Profile::Delegate* delegate_; |
270 | 270 |
271 chrome_browser_net::Predictor* predictor_; | 271 chrome_browser_net::Predictor* predictor_; |
272 | 272 |
273 bool session_restore_enabled_; | 273 bool session_restore_enabled_; |
274 | 274 |
275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
276 }; | 276 }; |
277 | 277 |
278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |