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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store | 195 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store |
196 // pointers to |prefs_| and shall be destructed first. | 196 // pointers to |prefs_| and shall be destructed first. |
197 scoped_ptr<PrefService> prefs_; | 197 scoped_ptr<PrefService> prefs_; |
198 scoped_ptr<PrefService> otr_prefs_; | 198 scoped_ptr<PrefService> otr_prefs_; |
199 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; | 199 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
200 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 200 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
201 ProfileImplIOData::Handle io_data_; | 201 ProfileImplIOData::Handle io_data_; |
202 scoped_refptr<ExtensionSpecialStoragePolicy> | 202 scoped_refptr<ExtensionSpecialStoragePolicy> |
203 extension_special_storage_policy_; | 203 extension_special_storage_policy_; |
204 scoped_ptr<NetPrefObserver> net_pref_observer_; | 204 scoped_ptr<NetPrefObserver> net_pref_observer_; |
205 scoped_ptr<BookmarkModel> bookmark_bar_model_; | |
206 | 205 |
207 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) | 206 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) |
208 scoped_refptr<PromoResourceService> promo_resource_service_; | 207 scoped_refptr<PromoResourceService> promo_resource_service_; |
209 #endif | 208 #endif |
210 | 209 |
211 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 210 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; |
212 | 211 |
213 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 212 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
214 | 213 |
215 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 214 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
216 scoped_refptr<content::GeolocationPermissionContext> | 215 scoped_refptr<content::GeolocationPermissionContext> |
217 geolocation_permission_context_; | 216 geolocation_permission_context_; |
218 scoped_refptr<content::SpeechRecognitionPreferences> | 217 scoped_refptr<content::SpeechRecognitionPreferences> |
219 speech_recognition_preferences_; | 218 speech_recognition_preferences_; |
220 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 219 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
221 scoped_refptr<HistoryService> history_service_; | |
222 scoped_ptr<FaviconService> favicon_service_; | 220 scoped_ptr<FaviconService> favicon_service_; |
223 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 221 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
224 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 222 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
225 bool history_service_created_; | |
226 bool favicon_service_created_; | 223 bool favicon_service_created_; |
227 bool clear_local_state_on_exit_; | 224 bool clear_local_state_on_exit_; |
228 | 225 |
229 // Whether or not the last session exited cleanly. This is set only once. | 226 // Whether or not the last session exited cleanly. This is set only once. |
230 bool last_session_exited_cleanly_; | 227 bool last_session_exited_cleanly_; |
231 | 228 |
232 #if defined(ENABLE_SESSION_SERVICE) | 229 #if defined(ENABLE_SESSION_SERVICE) |
233 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 230 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
234 #endif | 231 #endif |
235 | 232 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 Profile::Delegate* delegate_; | 265 Profile::Delegate* delegate_; |
269 | 266 |
270 chrome_browser_net::Predictor* predictor_; | 267 chrome_browser_net::Predictor* predictor_; |
271 | 268 |
272 bool session_restore_enabled_; | 269 bool session_restore_enabled_; |
273 | 270 |
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 271 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
275 }; | 272 }; |
276 | 273 |
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 274 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |