Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 9834056: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload rebase Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; 80 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE;
81 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; 81 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE;
82 virtual ExtensionSpecialStoragePolicy* 82 virtual ExtensionSpecialStoragePolicy*
83 GetExtensionSpecialStoragePolicy() OVERRIDE; 83 GetExtensionSpecialStoragePolicy() OVERRIDE;
84 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; 84 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE;
85 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; 85 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE;
86 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; 86 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE;
87 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; 87 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE;
88 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; 88 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE;
89 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; 89 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE;
90 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE;
91 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE;
92 virtual PrefService* GetPrefs() OVERRIDE; 90 virtual PrefService* GetPrefs() OVERRIDE;
93 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 91 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
94 virtual net::URLRequestContextGetter* 92 virtual net::URLRequestContextGetter*
95 GetRequestContextForExtensions() OVERRIDE; 93 GetRequestContextForExtensions() OVERRIDE;
96 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 94 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
97 const std::string& app_id) OVERRIDE; 95 const std::string& app_id) OVERRIDE;
98 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 96 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
99 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 97 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
100 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; 98 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE;
101 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; 99 virtual BookmarkModel* GetBookmarkModel() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 CreateMode create_mode); 142 CreateMode create_mode);
145 143
146 // Does final initialization. Should be called after prefs were loaded. 144 // Does final initialization. Should be called after prefs were loaded.
147 void DoFinalInit(bool is_new_profile); 145 void DoFinalInit(bool is_new_profile);
148 146
149 void InitHostZoomMap(); 147 void InitHostZoomMap();
150 148
151 // Does final prefs initialization and calls Init(). 149 // Does final prefs initialization and calls Init().
152 void OnPrefsLoaded(bool success); 150 void OnPrefsLoaded(bool success);
153 151
154 void CreateWebDataService();
155 FilePath GetPrefFilePath(); 152 FilePath GetPrefFilePath();
156 153
157 #if defined(ENABLE_SESSION_SERVICE) 154 #if defined(ENABLE_SESSION_SERVICE)
158 void StopCreateSessionServiceTimer(); 155 void StopCreateSessionServiceTimer();
159 156
160 void EnsureSessionServiceCreated(); 157 void EnsureSessionServiceCreated();
161 #endif 158 #endif
162 159
163 160
164 void EnsureRequestContextCreated() { 161 void EnsureRequestContextCreated() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 scoped_refptr<content::GeolocationPermissionContext> 207 scoped_refptr<content::GeolocationPermissionContext>
211 geolocation_permission_context_; 208 geolocation_permission_context_;
212 scoped_refptr<content::SpeechRecognitionPreferences> 209 scoped_refptr<content::SpeechRecognitionPreferences>
213 speech_recognition_preferences_; 210 speech_recognition_preferences_;
214 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; 211 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_;
215 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; 212 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_;
216 scoped_refptr<HistoryService> history_service_; 213 scoped_refptr<HistoryService> history_service_;
217 scoped_ptr<FaviconService> favicon_service_; 214 scoped_ptr<FaviconService> favicon_service_;
218 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; 215 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_;
219 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 216 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
220 scoped_refptr<WebDataService> web_data_service_;
221 bool history_service_created_; 217 bool history_service_created_;
222 bool favicon_service_created_; 218 bool favicon_service_created_;
223 bool created_web_data_service_;
224 bool clear_local_state_on_exit_; 219 bool clear_local_state_on_exit_;
225 220
226 // Whether or not the last session exited cleanly. This is set only once. 221 // Whether or not the last session exited cleanly. This is set only once.
227 bool last_session_exited_cleanly_; 222 bool last_session_exited_cleanly_;
228 223
229 #if defined(ENABLE_SESSION_SERVICE) 224 #if defined(ENABLE_SESSION_SERVICE)
230 base::OneShotTimer<ProfileImpl> create_session_service_timer_; 225 base::OneShotTimer<ProfileImpl> create_session_service_timer_;
231 #endif 226 #endif
232 227
233 scoped_ptr<Profile> off_the_record_profile_; 228 scoped_ptr<Profile> off_the_record_profile_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 Profile::Delegate* delegate_; 262 Profile::Delegate* delegate_;
268 263
269 chrome_browser_net::Predictor* predictor_; 264 chrome_browser_net::Predictor* predictor_;
270 265
271 bool session_restore_enabled_; 266 bool session_restore_enabled_;
272 267
273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 268 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
274 }; 269 };
275 270
276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698