| OLD | NEW |
| 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 Loading... |
| 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 std::string GetProfileName(); | 46 virtual std::string GetProfileName(); |
| 48 virtual ProfileId GetRuntimeId(); | 47 virtual ProfileId GetRuntimeId(); |
| 49 virtual FilePath GetPath(); | 48 virtual FilePath GetPath(); |
| 50 virtual bool IsOffTheRecord(); | 49 virtual bool IsOffTheRecord(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 150 |
| 152 private: | 151 private: |
| 153 friend class Profile; | 152 friend class Profile; |
| 154 | 153 |
| 155 ProfileImpl(const FilePath& path, | 154 ProfileImpl(const FilePath& path, |
| 156 Profile::Delegate* delegate); | 155 Profile::Delegate* delegate); |
| 157 | 156 |
| 158 // Does final initialization. Should be called after prefs were loaded. | 157 // Does final initialization. Should be called after prefs were loaded. |
| 159 void DoFinalInit(); | 158 void DoFinalInit(); |
| 160 | 159 |
| 161 // PrefServiceDelegate implementation. Does final prefs initialization and | 160 // Does final prefs initialization and calls Init(). |
| 162 // calls Init(). | 161 void OnPrefsLoaded(bool success); |
| 163 virtual void OnPrefsLoaded(PrefService* prefs, bool success); | |
| 164 | 162 |
| 165 void CreateWebDataService(); | 163 void CreateWebDataService(); |
| 166 FilePath GetPrefFilePath(); | 164 FilePath GetPrefFilePath(); |
| 167 | 165 |
| 168 void CreatePasswordStore(); | 166 void CreatePasswordStore(); |
| 169 | 167 |
| 170 void StopCreateSessionServiceTimer(); | 168 void StopCreateSessionServiceTimer(); |
| 171 | 169 |
| 172 void EnsureRequestContextCreated() { | 170 void EnsureRequestContextCreated() { |
| 173 GetRequestContext(); | 171 GetRequestContext(); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 299 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 302 | 300 |
| 303 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 301 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
| 304 | 302 |
| 305 Profile::Delegate* delegate_; | 303 Profile::Delegate* delegate_; |
| 306 | 304 |
| 307 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 305 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 308 }; | 306 }; |
| 309 | 307 |
| 310 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 308 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |