| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #if defined(OS_CHROMEOS) | 33 #if defined(OS_CHROMEOS) |
| 34 namespace chromeos { | 34 namespace chromeos { |
| 35 class EnterpriseExtensionObserver; | 35 class EnterpriseExtensionObserver; |
| 36 class LocaleChangeGuard; | 36 class LocaleChangeGuard; |
| 37 class Preferences; | 37 class Preferences; |
| 38 } | 38 } |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 namespace content { | 41 namespace content { |
| 42 class SpeechInputPreferences; | 42 class SpeechRecognitionPreferences; |
| 43 } | 43 } |
| 44 | 44 |
| 45 // The default profile implementation. | 45 // The default profile implementation. |
| 46 class ProfileImpl : public Profile, | 46 class ProfileImpl : public Profile, |
| 47 public content::NotificationObserver { | 47 public content::NotificationObserver { |
| 48 public: | 48 public: |
| 49 virtual ~ProfileImpl(); | 49 virtual ~ProfileImpl(); |
| 50 | 50 |
| 51 static void RegisterUserPrefs(PrefService* prefs); | 51 static void RegisterUserPrefs(PrefService* prefs); |
| 52 | 52 |
| 53 // content::BrowserContext implementation: | 53 // content::BrowserContext implementation: |
| 54 virtual FilePath GetPath() OVERRIDE; | 54 virtual FilePath GetPath() OVERRIDE; |
| 55 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; | 55 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; |
| 56 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 56 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 57 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 57 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 58 int renderer_child_id) OVERRIDE; | 58 int renderer_child_id) OVERRIDE; |
| 59 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; | 59 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; |
| 60 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 60 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
| 61 virtual content::GeolocationPermissionContext* | 61 virtual content::GeolocationPermissionContext* |
| 62 GetGeolocationPermissionContext() OVERRIDE; | 62 GetGeolocationPermissionContext() OVERRIDE; |
| 63 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; | 63 virtual content::SpeechRecognitionPreferences* |
| 64 GetSpeechRecognitionPreferences() OVERRIDE; |
| 64 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 65 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
| 65 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 66 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 66 | 67 |
| 67 // Profile implementation: | 68 // Profile implementation: |
| 68 virtual std::string GetProfileName() OVERRIDE; | 69 virtual std::string GetProfileName() OVERRIDE; |
| 69 virtual bool IsOffTheRecord() OVERRIDE; | 70 virtual bool IsOffTheRecord() OVERRIDE; |
| 70 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 71 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
| 71 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 72 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
| 72 virtual bool HasOffTheRecordProfile() OVERRIDE; | 73 virtual bool HasOffTheRecordProfile() OVERRIDE; |
| 73 virtual Profile* GetOriginalProfile() OVERRIDE; | 74 virtual Profile* GetOriginalProfile() OVERRIDE; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 scoped_refptr<PromoResourceService> promo_resource_service_; | 230 scoped_refptr<PromoResourceService> promo_resource_service_; |
| 230 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 231 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; |
| 231 | 232 |
| 232 scoped_ptr<TokenService> token_service_; | 233 scoped_ptr<TokenService> token_service_; |
| 233 | 234 |
| 234 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 235 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
| 235 | 236 |
| 236 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 237 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 237 scoped_refptr<content::GeolocationPermissionContext> | 238 scoped_refptr<content::GeolocationPermissionContext> |
| 238 geolocation_permission_context_; | 239 geolocation_permission_context_; |
| 239 scoped_refptr<content::SpeechInputPreferences> speech_input_preferences_; | 240 scoped_refptr<content::SpeechRecognitionPreferences> |
| 241 speech_recognition_preferences_; |
| 240 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; | 242 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; |
| 241 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 243 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
| 242 scoped_refptr<HistoryService> history_service_; | 244 scoped_refptr<HistoryService> history_service_; |
| 243 scoped_ptr<FaviconService> favicon_service_; | 245 scoped_ptr<FaviconService> favicon_service_; |
| 244 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 246 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
| 245 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 247 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
| 246 scoped_refptr<WebDataService> web_data_service_; | 248 scoped_refptr<WebDataService> web_data_service_; |
| 247 scoped_refptr<PasswordStore> password_store_; | 249 scoped_refptr<PasswordStore> password_store_; |
| 248 bool history_service_created_; | 250 bool history_service_created_; |
| 249 bool favicon_service_created_; | 251 bool favicon_service_created_; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 Profile::Delegate* delegate_; | 299 Profile::Delegate* delegate_; |
| 298 | 300 |
| 299 chrome_browser_net::Predictor* predictor_; | 301 chrome_browser_net::Predictor* predictor_; |
| 300 | 302 |
| 301 bool session_restore_enabled_; | 303 bool session_restore_enabled_; |
| 302 | 304 |
| 303 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 305 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 304 }; | 306 }; |
| 305 | 307 |
| 306 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 308 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |