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

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

Issue 6894020: Adds async interface method to PersistentPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Notifications. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 18 matching lines...) Expand all
29 class LocaleChangeGuard; 29 class LocaleChangeGuard;
30 class Preferences; 30 class Preferences;
31 } 31 }
32 #endif 32 #endif
33 33
34 class NetPrefObserver; 34 class NetPrefObserver;
35 35
36 // The default profile implementation. 36 // The default profile implementation.
37 class ProfileImpl : public Profile, 37 class ProfileImpl : public Profile,
38 public SpellCheckHostObserver, 38 public SpellCheckHostObserver,
39 public NotificationObserver, 39 public NotificationObserver {
40 public PrefServiceDelegate {
41 public: 40 public:
42 virtual ~ProfileImpl(); 41 virtual ~ProfileImpl();
43 42
44 static void RegisterUserPrefs(PrefService* prefs); 43 static void RegisterUserPrefs(PrefService* prefs);
45 44
46 // Profile implementation. 45 // Profile implementation.
47 virtual ProfileId GetRuntimeId(); 46 virtual ProfileId GetRuntimeId();
48 virtual FilePath GetPath(); 47 virtual FilePath GetPath();
49 virtual bool IsOffTheRecord(); 48 virtual bool IsOffTheRecord();
50 virtual Profile* GetOffTheRecordProfile(); 49 virtual Profile* GetOffTheRecordProfile();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 153
155 private: 154 private:
156 friend class Profile; 155 friend class Profile;
157 156
158 ProfileImpl(const FilePath& path, 157 ProfileImpl(const FilePath& path,
159 Profile::Delegate* delegate); 158 Profile::Delegate* delegate);
160 159
161 // Does final initialization. Should be called after prefs were loaded. 160 // Does final initialization. Should be called after prefs were loaded.
162 void DoFinalInit(); 161 void DoFinalInit();
163 162
164 // PrefServiceDelegate implementation. Does final prefs initialization and 163 // Does final prefs initialization and calls Init().
165 // calls Init(). 164 void OnPrefsLoaded(bool success);
166 virtual void OnPrefsLoaded(PrefService* prefs, bool success);
167 165
168 void CreateWebDataService(); 166 void CreateWebDataService();
169 FilePath GetPrefFilePath(); 167 FilePath GetPrefFilePath();
170 168
171 void CreatePasswordStore(); 169 void CreatePasswordStore();
172 170
173 void StopCreateSessionServiceTimer(); 171 void StopCreateSessionServiceTimer();
174 172
175 void EnsureRequestContextCreated() { 173 void EnsureRequestContextCreated() {
176 GetRequestContext(); 174 GetRequestContext();
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 309 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
312 310
313 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 311 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
314 312
315 Profile::Delegate* delegate_; 313 Profile::Delegate* delegate_;
316 314
317 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 315 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
318 }; 316 };
319 317
320 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 318 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698