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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 CreateMode create_mode); | 143 CreateMode create_mode); |
146 | 144 |
147 // Does final initialization. Should be called after prefs were loaded. | 145 // Does final initialization. Should be called after prefs were loaded. |
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 // Does final prefs initialization and calls Init(). | 150 // Does final prefs initialization and calls Init(). |
153 void OnPrefsLoaded(bool success); | 151 void OnPrefsLoaded(bool success); |
154 | 152 |
155 void CreateWebDataService(); | |
156 FilePath GetPrefFilePath(); | 153 FilePath GetPrefFilePath(); |
157 | 154 |
158 #if defined(ENABLE_SESSION_SERVICE) | 155 #if defined(ENABLE_SESSION_SERVICE) |
159 void StopCreateSessionServiceTimer(); | 156 void StopCreateSessionServiceTimer(); |
160 | 157 |
161 void EnsureSessionServiceCreated(); | 158 void EnsureSessionServiceCreated(); |
162 #endif | 159 #endif |
163 | 160 |
164 | 161 |
165 void EnsureRequestContextCreated() { | 162 void EnsureRequestContextCreated() { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 209 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
213 scoped_refptr<content::GeolocationPermissionContext> | 210 scoped_refptr<content::GeolocationPermissionContext> |
214 geolocation_permission_context_; | 211 geolocation_permission_context_; |
215 scoped_refptr<content::SpeechRecognitionPreferences> | 212 scoped_refptr<content::SpeechRecognitionPreferences> |
216 speech_recognition_preferences_; | 213 speech_recognition_preferences_; |
217 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 214 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
218 scoped_refptr<HistoryService> history_service_; | 215 scoped_refptr<HistoryService> history_service_; |
219 scoped_ptr<FaviconService> favicon_service_; | 216 scoped_ptr<FaviconService> favicon_service_; |
220 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 217 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
221 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 218 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
222 scoped_refptr<WebDataService> web_data_service_; | |
223 bool history_service_created_; | 219 bool history_service_created_; |
224 bool favicon_service_created_; | 220 bool favicon_service_created_; |
225 bool created_web_data_service_; | |
226 bool clear_local_state_on_exit_; | 221 bool clear_local_state_on_exit_; |
227 | 222 |
228 // Whether or not the last session exited cleanly. This is set only once. | 223 // Whether or not the last session exited cleanly. This is set only once. |
229 bool last_session_exited_cleanly_; | 224 bool last_session_exited_cleanly_; |
230 | 225 |
231 #if defined(ENABLE_SESSION_SERVICE) | 226 #if defined(ENABLE_SESSION_SERVICE) |
232 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 227 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
233 #endif | 228 #endif |
234 | 229 |
235 scoped_ptr<Profile> off_the_record_profile_; | 230 scoped_ptr<Profile> off_the_record_profile_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 Profile::Delegate* delegate_; | 264 Profile::Delegate* delegate_; |
270 | 265 |
271 chrome_browser_net::Predictor* predictor_; | 266 chrome_browser_net::Predictor* predictor_; |
272 | 267 |
273 bool session_restore_enabled_; | 268 bool session_restore_enabled_; |
274 | 269 |
275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 270 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
276 }; | 271 }; |
277 | 272 |
278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 273 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |