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

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

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win and Mac Created 8 years, 9 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 92 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE;
93 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; 93 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE;
94 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat) OVERRIDE;
95 virtual PrefService* GetPrefs() OVERRIDE; 94 virtual PrefService* GetPrefs() OVERRIDE;
96 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 95 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
97 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; 96 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE;
98 virtual net::URLRequestContextGetter* 97 virtual net::URLRequestContextGetter*
99 GetRequestContextForExtensions() OVERRIDE; 98 GetRequestContextForExtensions() OVERRIDE;
100 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 99 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
101 const std::string& app_id) OVERRIDE; 100 const std::string& app_id) OVERRIDE;
102 virtual void RegisterExtensionWithRequestContexts( 101 virtual void RegisterExtensionWithRequestContexts(
103 const Extension* extension) OVERRIDE; 102 const Extension* extension) OVERRIDE;
104 virtual void UnregisterExtensionWithRequestContexts( 103 virtual void UnregisterExtensionWithRequestContexts(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void DoFinalInit(); 149 void DoFinalInit();
151 150
152 void InitHostZoomMap(); 151 void InitHostZoomMap();
153 152
154 // Does final prefs initialization and calls Init(). 153 // Does final prefs initialization and calls Init().
155 void OnPrefsLoaded(bool success); 154 void OnPrefsLoaded(bool success);
156 155
157 void CreateWebDataService(); 156 void CreateWebDataService();
158 FilePath GetPrefFilePath(); 157 FilePath GetPrefFilePath();
159 158
160 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
161 LocalProfileId GetLocalProfileId();
162 #endif
163
164 void CreatePasswordStore();
165
166 void StopCreateSessionServiceTimer(); 159 void StopCreateSessionServiceTimer();
167 160
168 void EnsureRequestContextCreated() { 161 void EnsureRequestContextCreated() {
169 GetRequestContext(); 162 GetRequestContext();
170 } 163 }
171 164
172 void EnsureSessionServiceCreated(); 165 void EnsureSessionServiceCreated();
173 166
174 ExtensionPrefValueMap* GetExtensionPrefValueMap(); 167 ExtensionPrefValueMap* GetExtensionPrefValueMap();
175 168
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 geolocation_permission_context_; 229 geolocation_permission_context_;
237 scoped_refptr<content::SpeechRecognitionPreferences> 230 scoped_refptr<content::SpeechRecognitionPreferences>
238 speech_recognition_preferences_; 231 speech_recognition_preferences_;
239 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; 232 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_;
240 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; 233 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_;
241 scoped_refptr<HistoryService> history_service_; 234 scoped_refptr<HistoryService> history_service_;
242 scoped_ptr<FaviconService> favicon_service_; 235 scoped_ptr<FaviconService> favicon_service_;
243 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; 236 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_;
244 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 237 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
245 scoped_refptr<WebDataService> web_data_service_; 238 scoped_refptr<WebDataService> web_data_service_;
246 scoped_refptr<PasswordStore> password_store_;
247 bool history_service_created_; 239 bool history_service_created_;
248 bool favicon_service_created_; 240 bool favicon_service_created_;
249 bool created_web_data_service_; 241 bool created_web_data_service_;
250 bool created_password_store_;
251 bool clear_local_state_on_exit_; 242 bool clear_local_state_on_exit_;
252 // Whether or not the last session exited cleanly. This is set only once. 243 // Whether or not the last session exited cleanly. This is set only once.
253 bool last_session_exited_cleanly_; 244 bool last_session_exited_cleanly_;
254 245
255 base::OneShotTimer<ProfileImpl> create_session_service_timer_; 246 base::OneShotTimer<ProfileImpl> create_session_service_timer_;
256 247
257 scoped_ptr<Profile> off_the_record_profile_; 248 scoped_ptr<Profile> off_the_record_profile_;
258 249
259 // See GetStartTime for details. 250 // See GetStartTime for details.
260 base::Time start_time_; 251 base::Time start_time_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 Profile::Delegate* delegate_; 287 Profile::Delegate* delegate_;
297 288
298 chrome_browser_net::Predictor* predictor_; 289 chrome_browser_net::Predictor* predictor_;
299 290
300 bool session_restore_enabled_; 291 bool session_restore_enabled_;
301 292
302 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 293 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
303 }; 294 };
304 295
305 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 296 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698