| 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 10 matching lines...) Expand all Loading... |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 | 22 |
| 23 class ExtensionNavigationObserver; | 23 class ExtensionNavigationObserver; |
| 24 class ExtensionPrefs; | 24 class ExtensionPrefs; |
| 25 class ExtensionPrefValueMap; | 25 class ExtensionPrefValueMap; |
| 26 class NetPrefObserver; | 26 class NetPrefObserver; |
| 27 class PrefService; | 27 class PrefService; |
| 28 class ProfileSyncService; | 28 class ProfileSyncService; |
| 29 class PromoResourceService; | 29 class PromoResourceService; |
| 30 class SpeechInputPreferences; | 30 class SpeechInputPreferences; |
| 31 class SpellCheckProfile; | |
| 32 class SSLConfigServiceManager; | 31 class SSLConfigServiceManager; |
| 33 class VisitedLinkEventListener; | 32 class VisitedLinkEventListener; |
| 34 | 33 |
| 35 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
| 36 namespace chromeos { | 35 namespace chromeos { |
| 37 class EnterpriseExtensionObserver; | 36 class EnterpriseExtensionObserver; |
| 38 class LocaleChangeGuard; | 37 class LocaleChangeGuard; |
| 39 class Preferences; | 38 class Preferences; |
| 40 } | 39 } |
| 41 #endif | 40 #endif |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 109 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
| 111 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 110 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
| 112 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; | 111 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; |
| 113 virtual FindBarState* GetFindBarState() OVERRIDE; | 112 virtual FindBarState* GetFindBarState() OVERRIDE; |
| 114 virtual bool HasProfileSyncService() OVERRIDE; | 113 virtual bool HasProfileSyncService() OVERRIDE; |
| 115 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 114 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
| 116 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 115 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
| 117 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 116 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
| 118 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 117 virtual bool IsSameProfile(Profile* profile) OVERRIDE; |
| 119 virtual base::Time GetStartTime() const OVERRIDE; | 118 virtual base::Time GetStartTime() const OVERRIDE; |
| 120 virtual SpellCheckHost* GetSpellCheckHost() OVERRIDE; | |
| 121 virtual void ReinitializeSpellCheckHost(bool force) OVERRIDE; | |
| 122 virtual void MarkAsCleanShutdown() OVERRIDE; | 119 virtual void MarkAsCleanShutdown() OVERRIDE; |
| 123 virtual void InitExtensions(bool extensions_enabled) OVERRIDE; | 120 virtual void InitExtensions(bool extensions_enabled) OVERRIDE; |
| 124 virtual void InitPromoResources() OVERRIDE; | 121 virtual void InitPromoResources() OVERRIDE; |
| 125 virtual void InitRegisteredProtocolHandlers() OVERRIDE; | 122 virtual void InitRegisteredProtocolHandlers() OVERRIDE; |
| 126 virtual FilePath last_selected_directory() OVERRIDE; | 123 virtual FilePath last_selected_directory() OVERRIDE; |
| 127 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 124 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
| 128 virtual ProfileSyncService* GetProfileSyncService() OVERRIDE; | 125 virtual ProfileSyncService* GetProfileSyncService() OVERRIDE; |
| 129 virtual TokenService* GetTokenService() OVERRIDE; | 126 virtual TokenService* GetTokenService() OVERRIDE; |
| 130 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE; | 127 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE; |
| 131 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; | 128 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void EnsureRequestContextCreated() { | 173 void EnsureRequestContextCreated() { |
| 177 GetRequestContext(); | 174 GetRequestContext(); |
| 178 } | 175 } |
| 179 | 176 |
| 180 void EnsureSessionServiceCreated(); | 177 void EnsureSessionServiceCreated(); |
| 181 | 178 |
| 182 ExtensionPrefValueMap* GetExtensionPrefValueMap(); | 179 ExtensionPrefValueMap* GetExtensionPrefValueMap(); |
| 183 | 180 |
| 184 void CreateQuotaManagerAndClients(); | 181 void CreateQuotaManagerAndClients(); |
| 185 | 182 |
| 186 SpellCheckProfile* GetSpellCheckProfile(); | |
| 187 | |
| 188 void UpdateProfileUserNameCache(); | 183 void UpdateProfileUserNameCache(); |
| 189 | 184 |
| 190 | 185 |
| 191 // Updates the ProfileInfoCache with data from this profile. | 186 // Updates the ProfileInfoCache with data from this profile. |
| 192 void UpdateProfileNameCache(); | 187 void UpdateProfileNameCache(); |
| 193 void UpdateProfileAvatarCache(); | 188 void UpdateProfileAvatarCache(); |
| 194 | 189 |
| 195 void GetCacheParameters(bool is_media_context, | 190 void GetCacheParameters(bool is_media_context, |
| 196 FilePath* cache_path, | 191 FilePath* cache_path, |
| 197 int* max_size); | 192 int* max_size); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // Whether or not the last session exited cleanly. This is set only once. | 266 // Whether or not the last session exited cleanly. This is set only once. |
| 272 bool last_session_exited_cleanly_; | 267 bool last_session_exited_cleanly_; |
| 273 | 268 |
| 274 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 269 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
| 275 | 270 |
| 276 scoped_ptr<Profile> off_the_record_profile_; | 271 scoped_ptr<Profile> off_the_record_profile_; |
| 277 | 272 |
| 278 // See GetStartTime for details. | 273 // See GetStartTime for details. |
| 279 base::Time start_time_; | 274 base::Time start_time_; |
| 280 | 275 |
| 281 scoped_ptr<SpellCheckProfile> spellcheck_profile_; | |
| 282 | |
| 283 #if defined(OS_WIN) | 276 #if defined(OS_WIN) |
| 284 bool checked_instant_promo_; | 277 bool checked_instant_promo_; |
| 285 scoped_ptr<PromoCounter> instant_promo_counter_; | 278 scoped_ptr<PromoCounter> instant_promo_counter_; |
| 286 #endif | 279 #endif |
| 287 | 280 |
| 288 // The AppCacheService for this profile, shared by all requests contexts | 281 // The AppCacheService for this profile, shared by all requests contexts |
| 289 // associated with this profile. Should only be used on the IO thread. | 282 // associated with this profile. Should only be used on the IO thread. |
| 290 scoped_refptr<ChromeAppCacheService> appcache_service_; | 283 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 291 | 284 |
| 292 // The main database tracker for this profile. | 285 // The main database tracker for this profile. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 Profile::Delegate* delegate_; | 320 Profile::Delegate* delegate_; |
| 328 | 321 |
| 329 chrome_browser_net::Predictor* predictor_; | 322 chrome_browser_net::Predictor* predictor_; |
| 330 | 323 |
| 331 bool session_restore_enabled_; | 324 bool session_restore_enabled_; |
| 332 | 325 |
| 333 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 326 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 334 }; | 327 }; |
| 335 | 328 |
| 336 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 329 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |