| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 90 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
| 91 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 91 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
| 92 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; | 92 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; |
| 93 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; | 93 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; |
| 94 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat) OVERRIDE; | |
| 95 virtual PrefService* GetPrefs() OVERRIDE; | 94 virtual PrefService* GetPrefs() OVERRIDE; |
| 96 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 95 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
| 97 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; | 96 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; |
| 98 virtual net::URLRequestContextGetter* | 97 virtual net::URLRequestContextGetter* |
| 99 GetRequestContextForExtensions() OVERRIDE; | 98 GetRequestContextForExtensions() OVERRIDE; |
| 100 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 99 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
| 101 const std::string& app_id) OVERRIDE; | 100 const std::string& app_id) OVERRIDE; |
| 102 virtual void RegisterExtensionWithRequestContexts( | 101 virtual void RegisterExtensionWithRequestContexts( |
| 103 const Extension* extension) OVERRIDE; | 102 const Extension* extension) OVERRIDE; |
| 104 virtual void UnregisterExtensionWithRequestContexts( | 103 virtual void UnregisterExtensionWithRequestContexts( |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 void DoFinalInit(bool is_new_profile); | 155 void DoFinalInit(bool is_new_profile); |
| 157 | 156 |
| 158 void InitHostZoomMap(); | 157 void InitHostZoomMap(); |
| 159 | 158 |
| 160 // Does final prefs initialization and calls Init(). | 159 // Does final prefs initialization and calls Init(). |
| 161 void OnPrefsLoaded(bool success); | 160 void OnPrefsLoaded(bool success); |
| 162 | 161 |
| 163 void CreateWebDataService(); | 162 void CreateWebDataService(); |
| 164 FilePath GetPrefFilePath(); | 163 FilePath GetPrefFilePath(); |
| 165 | 164 |
| 166 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | |
| 167 LocalProfileId GetLocalProfileId(); | |
| 168 #endif | |
| 169 | |
| 170 void CreatePasswordStore(); | |
| 171 | |
| 172 void StopCreateSessionServiceTimer(); | 165 void StopCreateSessionServiceTimer(); |
| 173 | 166 |
| 174 void EnsureRequestContextCreated() { | 167 void EnsureRequestContextCreated() { |
| 175 GetRequestContext(); | 168 GetRequestContext(); |
| 176 } | 169 } |
| 177 | 170 |
| 178 void EnsureSessionServiceCreated(); | 171 void EnsureSessionServiceCreated(); |
| 179 | 172 |
| 180 ExtensionPrefValueMap* GetExtensionPrefValueMap(); | 173 ExtensionPrefValueMap* GetExtensionPrefValueMap(); |
| 181 | 174 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 geolocation_permission_context_; | 235 geolocation_permission_context_; |
| 243 scoped_refptr<content::SpeechRecognitionPreferences> | 236 scoped_refptr<content::SpeechRecognitionPreferences> |
| 244 speech_recognition_preferences_; | 237 speech_recognition_preferences_; |
| 245 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; | 238 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; |
| 246 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 239 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
| 247 scoped_refptr<HistoryService> history_service_; | 240 scoped_refptr<HistoryService> history_service_; |
| 248 scoped_ptr<FaviconService> favicon_service_; | 241 scoped_ptr<FaviconService> favicon_service_; |
| 249 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 242 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
| 250 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 243 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
| 251 scoped_refptr<WebDataService> web_data_service_; | 244 scoped_refptr<WebDataService> web_data_service_; |
| 252 scoped_refptr<PasswordStore> password_store_; | |
| 253 bool history_service_created_; | 245 bool history_service_created_; |
| 254 bool favicon_service_created_; | 246 bool favicon_service_created_; |
| 255 bool created_web_data_service_; | 247 bool created_web_data_service_; |
| 256 bool created_password_store_; | |
| 257 bool clear_local_state_on_exit_; | 248 bool clear_local_state_on_exit_; |
| 258 // Whether or not the last session exited cleanly. This is set only once. | 249 // Whether or not the last session exited cleanly. This is set only once. |
| 259 bool last_session_exited_cleanly_; | 250 bool last_session_exited_cleanly_; |
| 260 | 251 |
| 261 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 252 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
| 262 | 253 |
| 263 scoped_ptr<Profile> off_the_record_profile_; | 254 scoped_ptr<Profile> off_the_record_profile_; |
| 264 | 255 |
| 265 // See GetStartTime for details. | 256 // See GetStartTime for details. |
| 266 base::Time start_time_; | 257 base::Time start_time_; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 Profile::Delegate* delegate_; | 293 Profile::Delegate* delegate_; |
| 303 | 294 |
| 304 chrome_browser_net::Predictor* predictor_; | 295 chrome_browser_net::Predictor* predictor_; |
| 305 | 296 |
| 306 bool session_restore_enabled_; | 297 bool session_restore_enabled_; |
| 307 | 298 |
| 308 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 299 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 309 }; | 300 }; |
| 310 | 301 |
| 311 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 302 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |