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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void DoFinalInit(bool is_new_profile); | 146 void DoFinalInit(bool is_new_profile); |
149 | 147 |
150 void InitHostZoomMap(); | 148 void InitHostZoomMap(); |
151 | 149 |
152 // The installation of any pre-defined protocol handlers. | 150 // The installation of any pre-defined protocol handlers. |
153 void InstallDefaultProtocolHandlers(); | 151 void InstallDefaultProtocolHandlers(); |
154 | 152 |
155 // Does final prefs initialization and calls Init(). | 153 // Does final prefs initialization and calls Init(). |
156 void OnPrefsLoaded(bool success); | 154 void OnPrefsLoaded(bool success); |
157 | 155 |
158 void CreateWebDataService(); | |
159 FilePath GetPrefFilePath(); | 156 FilePath GetPrefFilePath(); |
160 | 157 |
161 #if defined(ENABLE_SESSION_SERVICE) | 158 #if defined(ENABLE_SESSION_SERVICE) |
162 void StopCreateSessionServiceTimer(); | 159 void StopCreateSessionServiceTimer(); |
163 | 160 |
164 void EnsureSessionServiceCreated(); | 161 void EnsureSessionServiceCreated(); |
165 #endif | 162 #endif |
166 | 163 |
167 | 164 |
168 void EnsureRequestContextCreated() { | 165 void EnsureRequestContextCreated() { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 215 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
219 scoped_refptr<content::GeolocationPermissionContext> | 216 scoped_refptr<content::GeolocationPermissionContext> |
220 geolocation_permission_context_; | 217 geolocation_permission_context_; |
221 scoped_refptr<content::SpeechRecognitionPreferences> | 218 scoped_refptr<content::SpeechRecognitionPreferences> |
222 speech_recognition_preferences_; | 219 speech_recognition_preferences_; |
223 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 220 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
224 scoped_refptr<HistoryService> history_service_; | 221 scoped_refptr<HistoryService> history_service_; |
225 scoped_ptr<FaviconService> favicon_service_; | 222 scoped_ptr<FaviconService> favicon_service_; |
226 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 223 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
227 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 224 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
228 scoped_refptr<WebDataService> web_data_service_; | |
229 bool history_service_created_; | 225 bool history_service_created_; |
230 bool favicon_service_created_; | 226 bool favicon_service_created_; |
231 bool created_web_data_service_; | |
232 bool clear_local_state_on_exit_; | 227 bool clear_local_state_on_exit_; |
233 | 228 |
234 // Whether or not the last session exited cleanly. This is set only once. | 229 // Whether or not the last session exited cleanly. This is set only once. |
235 bool last_session_exited_cleanly_; | 230 bool last_session_exited_cleanly_; |
236 | 231 |
237 #if defined(ENABLE_SESSION_SERVICE) | 232 #if defined(ENABLE_SESSION_SERVICE) |
238 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 233 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
239 #endif | 234 #endif |
240 | 235 |
241 scoped_ptr<Profile> off_the_record_profile_; | 236 scoped_ptr<Profile> off_the_record_profile_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 Profile::Delegate* delegate_; | 268 Profile::Delegate* delegate_; |
274 | 269 |
275 chrome_browser_net::Predictor* predictor_; | 270 chrome_browser_net::Predictor* predictor_; |
276 | 271 |
277 bool session_restore_enabled_; | 272 bool session_restore_enabled_; |
278 | 273 |
279 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
280 }; | 275 }; |
281 | 276 |
282 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |