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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; | 79 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; |
80 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; | 80 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; |
81 virtual ExtensionSpecialStoragePolicy* | 81 virtual ExtensionSpecialStoragePolicy* |
82 GetExtensionSpecialStoragePolicy() OVERRIDE; | 82 GetExtensionSpecialStoragePolicy() OVERRIDE; |
83 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; | 83 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; |
84 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; | 84 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; |
85 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; | 85 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; |
86 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 86 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
87 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 87 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
88 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 88 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
89 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; | |
90 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; | |
91 virtual PrefService* GetPrefs() OVERRIDE; | 89 virtual PrefService* GetPrefs() OVERRIDE; |
92 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 90 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
93 virtual net::URLRequestContextGetter* | 91 virtual net::URLRequestContextGetter* |
94 GetRequestContextForExtensions() OVERRIDE; | 92 GetRequestContextForExtensions() OVERRIDE; |
95 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 93 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
96 const std::string& app_id) OVERRIDE; | 94 const std::string& app_id) OVERRIDE; |
97 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 95 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
98 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 96 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
99 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 97 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
100 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 98 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 CreateMode create_mode); | 140 CreateMode create_mode); |
143 | 141 |
144 // Does final initialization. Should be called after prefs were loaded. | 142 // Does final initialization. Should be called after prefs were loaded. |
145 void DoFinalInit(bool is_new_profile); | 143 void DoFinalInit(bool is_new_profile); |
146 | 144 |
147 void InitHostZoomMap(); | 145 void InitHostZoomMap(); |
148 | 146 |
149 // Does final prefs initialization and calls Init(). | 147 // Does final prefs initialization and calls Init(). |
150 void OnPrefsLoaded(bool success); | 148 void OnPrefsLoaded(bool success); |
151 | 149 |
152 void CreateWebDataService(); | |
153 FilePath GetPrefFilePath(); | 150 FilePath GetPrefFilePath(); |
154 | 151 |
155 #if defined(ENABLE_SESSION_SERVICE) | 152 #if defined(ENABLE_SESSION_SERVICE) |
156 void StopCreateSessionServiceTimer(); | 153 void StopCreateSessionServiceTimer(); |
157 | 154 |
158 void EnsureSessionServiceCreated(); | 155 void EnsureSessionServiceCreated(); |
159 #endif | 156 #endif |
160 | 157 |
161 | 158 |
162 void EnsureRequestContextCreated() { | 159 void EnsureRequestContextCreated() { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 202 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
206 scoped_refptr<content::GeolocationPermissionContext> | 203 scoped_refptr<content::GeolocationPermissionContext> |
207 geolocation_permission_context_; | 204 geolocation_permission_context_; |
208 scoped_refptr<content::SpeechRecognitionPreferences> | 205 scoped_refptr<content::SpeechRecognitionPreferences> |
209 speech_recognition_preferences_; | 206 speech_recognition_preferences_; |
210 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 207 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
211 scoped_refptr<HistoryService> history_service_; | 208 scoped_refptr<HistoryService> history_service_; |
212 scoped_ptr<FaviconService> favicon_service_; | 209 scoped_ptr<FaviconService> favicon_service_; |
213 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 210 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
214 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 211 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
215 scoped_refptr<WebDataService> web_data_service_; | |
216 bool history_service_created_; | 212 bool history_service_created_; |
217 bool favicon_service_created_; | 213 bool favicon_service_created_; |
218 bool created_web_data_service_; | |
219 bool clear_local_state_on_exit_; | 214 bool clear_local_state_on_exit_; |
220 | 215 |
221 // Whether or not the last session exited cleanly. This is set only once. | 216 // Whether or not the last session exited cleanly. This is set only once. |
222 bool last_session_exited_cleanly_; | 217 bool last_session_exited_cleanly_; |
223 | 218 |
224 #if defined(ENABLE_SESSION_SERVICE) | 219 #if defined(ENABLE_SESSION_SERVICE) |
225 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 220 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
226 #endif | 221 #endif |
227 | 222 |
228 scoped_ptr<Profile> off_the_record_profile_; | 223 scoped_ptr<Profile> off_the_record_profile_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 Profile::Delegate* delegate_; | 257 Profile::Delegate* delegate_; |
263 | 258 |
264 chrome_browser_net::Predictor* predictor_; | 259 chrome_browser_net::Predictor* predictor_; |
265 | 260 |
266 bool session_restore_enabled_; | 261 bool session_restore_enabled_; |
267 | 262 |
268 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 263 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
269 }; | 264 }; |
270 | 265 |
271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 266 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |