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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; | 82 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; |
83 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; | 83 virtual ExtensionEventRouter* 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 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; | |
93 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; | |
94 virtual PrefService* GetPrefs() OVERRIDE; | 92 virtual PrefService* GetPrefs() OVERRIDE; |
95 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 93 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
96 virtual net::URLRequestContextGetter* | 94 virtual net::URLRequestContextGetter* |
97 GetRequestContextForExtensions() OVERRIDE; | 95 GetRequestContextForExtensions() OVERRIDE; |
98 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 96 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
99 const std::string& app_id) OVERRIDE; | 97 const std::string& app_id) OVERRIDE; |
100 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 98 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
101 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 99 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
102 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 100 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
103 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 101 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void DoFinalInit(bool is_new_profile); | 145 void DoFinalInit(bool is_new_profile); |
148 | 146 |
149 void InitHostZoomMap(); | 147 void InitHostZoomMap(); |
150 | 148 |
151 // The installation of any pre-defined protocol handlers. | 149 // The installation of any pre-defined protocol handlers. |
152 void InstallDefaultProtocolHandlers(); | 150 void InstallDefaultProtocolHandlers(); |
153 | 151 |
154 // Does final prefs initialization and calls Init(). | 152 // Does final prefs initialization and calls Init(). |
155 void OnPrefsLoaded(bool success); | 153 void OnPrefsLoaded(bool success); |
156 | 154 |
157 void CreateWebDataService(); | |
158 FilePath GetPrefFilePath(); | 155 FilePath GetPrefFilePath(); |
159 | 156 |
160 #if defined(ENABLE_SESSION_SERVICE) | 157 #if defined(ENABLE_SESSION_SERVICE) |
161 void StopCreateSessionServiceTimer(); | 158 void StopCreateSessionServiceTimer(); |
162 | 159 |
163 void EnsureSessionServiceCreated(); | 160 void EnsureSessionServiceCreated(); |
164 #endif | 161 #endif |
165 | 162 |
166 | 163 |
167 void EnsureRequestContextCreated() { | 164 void EnsureRequestContextCreated() { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 214 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
218 scoped_refptr<content::GeolocationPermissionContext> | 215 scoped_refptr<content::GeolocationPermissionContext> |
219 geolocation_permission_context_; | 216 geolocation_permission_context_; |
220 scoped_refptr<content::SpeechRecognitionPreferences> | 217 scoped_refptr<content::SpeechRecognitionPreferences> |
221 speech_recognition_preferences_; | 218 speech_recognition_preferences_; |
222 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 219 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
223 scoped_refptr<HistoryService> history_service_; | 220 scoped_refptr<HistoryService> history_service_; |
224 scoped_ptr<FaviconService> favicon_service_; | 221 scoped_ptr<FaviconService> favicon_service_; |
225 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 222 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
226 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 223 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
227 scoped_refptr<WebDataService> web_data_service_; | |
228 bool history_service_created_; | 224 bool history_service_created_; |
229 bool favicon_service_created_; | 225 bool favicon_service_created_; |
230 bool created_web_data_service_; | |
231 bool clear_local_state_on_exit_; | 226 bool clear_local_state_on_exit_; |
232 | 227 |
233 // Whether or not the last session exited cleanly. This is set only once. | 228 // Whether or not the last session exited cleanly. This is set only once. |
234 bool last_session_exited_cleanly_; | 229 bool last_session_exited_cleanly_; |
235 | 230 |
236 #if defined(ENABLE_SESSION_SERVICE) | 231 #if defined(ENABLE_SESSION_SERVICE) |
237 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 232 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
238 #endif | 233 #endif |
239 | 234 |
240 scoped_ptr<Profile> off_the_record_profile_; | 235 scoped_ptr<Profile> off_the_record_profile_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 Profile::Delegate* delegate_; | 267 Profile::Delegate* delegate_; |
273 | 268 |
274 chrome_browser_net::Predictor* predictor_; | 269 chrome_browser_net::Predictor* predictor_; |
275 | 270 |
276 bool session_restore_enabled_; | 271 bool session_restore_enabled_; |
277 | 272 |
278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
279 }; | 274 }; |
280 | 275 |
281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |