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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; | 83 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; |
84 virtual ExtensionSpecialStoragePolicy* | 84 virtual ExtensionSpecialStoragePolicy* |
85 GetExtensionSpecialStoragePolicy() OVERRIDE; | 85 GetExtensionSpecialStoragePolicy() OVERRIDE; |
86 virtual LazyBackgroundTaskQueue* GetLazyBackgroundTaskQueue() OVERRIDE; | 86 virtual LazyBackgroundTaskQueue* GetLazyBackgroundTaskQueue() OVERRIDE; |
87 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; | 87 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; |
88 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; | 88 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; |
89 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; | 89 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; |
90 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 90 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
91 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 91 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
92 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 92 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
93 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; | |
94 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; | |
95 virtual PrefService* GetPrefs() OVERRIDE; | 93 virtual PrefService* GetPrefs() OVERRIDE; |
96 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 94 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
97 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; | 95 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; |
98 virtual net::URLRequestContextGetter* | 96 virtual net::URLRequestContextGetter* |
99 GetRequestContextForExtensions() OVERRIDE; | 97 GetRequestContextForExtensions() OVERRIDE; |
100 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 98 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
101 const std::string& app_id) OVERRIDE; | 99 const std::string& app_id) OVERRIDE; |
102 virtual void RegisterExtensionWithRequestContexts( | 100 virtual void RegisterExtensionWithRequestContexts( |
103 const Extension* extension) OVERRIDE; | 101 const Extension* extension) OVERRIDE; |
104 virtual void UnregisterExtensionWithRequestContexts( | 102 virtual void UnregisterExtensionWithRequestContexts( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 CreateMode create_mode); | 154 CreateMode create_mode); |
157 | 155 |
158 // Does final initialization. Should be called after prefs were loaded. | 156 // Does final initialization. Should be called after prefs were loaded. |
159 void DoFinalInit(bool is_new_profile); | 157 void DoFinalInit(bool is_new_profile); |
160 | 158 |
161 void InitHostZoomMap(); | 159 void InitHostZoomMap(); |
162 | 160 |
163 // Does final prefs initialization and calls Init(). | 161 // Does final prefs initialization and calls Init(). |
164 void OnPrefsLoaded(bool success); | 162 void OnPrefsLoaded(bool success); |
165 | 163 |
166 void CreateWebDataService(); | |
167 FilePath GetPrefFilePath(); | 164 FilePath GetPrefFilePath(); |
168 | 165 |
169 void StopCreateSessionServiceTimer(); | 166 void StopCreateSessionServiceTimer(); |
170 | 167 |
171 void EnsureRequestContextCreated() { | 168 void EnsureRequestContextCreated() { |
172 GetRequestContext(); | 169 GetRequestContext(); |
173 } | 170 } |
174 | 171 |
175 void EnsureSessionServiceCreated(); | 172 void EnsureSessionServiceCreated(); |
176 | 173 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 scoped_refptr<content::GeolocationPermissionContext> | 237 scoped_refptr<content::GeolocationPermissionContext> |
241 geolocation_permission_context_; | 238 geolocation_permission_context_; |
242 scoped_refptr<content::SpeechRecognitionPreferences> | 239 scoped_refptr<content::SpeechRecognitionPreferences> |
243 speech_recognition_preferences_; | 240 speech_recognition_preferences_; |
244 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; | 241 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; |
245 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; | 242 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; |
246 scoped_refptr<HistoryService> history_service_; | 243 scoped_refptr<HistoryService> history_service_; |
247 scoped_ptr<FaviconService> favicon_service_; | 244 scoped_ptr<FaviconService> favicon_service_; |
248 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 245 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
249 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 246 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
250 scoped_refptr<WebDataService> web_data_service_; | 247 scoped_refptr<WebDataService> web_data_service_; |
rpetterson
2012/03/27 01:15:06
Does this need to be here? If so, when is it initi
GeorgeY
2012/03/30 19:20:12
good catch - removed
| |
251 bool history_service_created_; | 248 bool history_service_created_; |
252 bool favicon_service_created_; | 249 bool favicon_service_created_; |
253 bool created_web_data_service_; | 250 bool created_web_data_service_; |
rpetterson
2012/03/27 01:15:06
Does this need to be here?
GeorgeY
2012/03/30 19:20:12
and this
| |
254 bool clear_local_state_on_exit_; | 251 bool clear_local_state_on_exit_; |
255 | 252 |
256 // Whether or not the last session exited cleanly. This is set only once. | 253 // Whether or not the last session exited cleanly. This is set only once. |
257 bool last_session_exited_cleanly_; | 254 bool last_session_exited_cleanly_; |
258 | 255 |
259 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 256 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
260 | 257 |
261 scoped_ptr<Profile> off_the_record_profile_; | 258 scoped_ptr<Profile> off_the_record_profile_; |
262 | 259 |
263 // See GetStartTime for details. | 260 // See GetStartTime for details. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 Profile::Delegate* delegate_; | 297 Profile::Delegate* delegate_; |
301 | 298 |
302 chrome_browser_net::Predictor* predictor_; | 299 chrome_browser_net::Predictor* predictor_; |
303 | 300 |
304 bool session_restore_enabled_; | 301 bool session_restore_enabled_; |
305 | 302 |
306 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 303 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
307 }; | 304 }; |
308 | 305 |
309 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 306 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |