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