| 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 14 matching lines...) Expand all Loading... |
| 25 class SpellCheckHostMetrics; | 25 class SpellCheckHostMetrics; |
| 26 | 26 |
| 27 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 class EnterpriseExtensionObserver; | 29 class EnterpriseExtensionObserver; |
| 30 class LocaleChangeGuard; | 30 class LocaleChangeGuard; |
| 31 class Preferences; | 31 class Preferences; |
| 32 } | 32 } |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 namespace base { |
| 36 class WaitableEvent; |
| 37 } |
| 38 |
| 35 class NetPrefObserver; | 39 class NetPrefObserver; |
| 36 | 40 |
| 37 // The default profile implementation. | 41 // The default profile implementation. |
| 38 class ProfileImpl : public Profile, | 42 class ProfileImpl : public Profile, |
| 39 public SpellCheckHostObserver, | 43 public SpellCheckHostObserver, |
| 40 public NotificationObserver { | 44 public NotificationObserver { |
| 41 public: | 45 public: |
| 42 virtual ~ProfileImpl(); | 46 virtual ~ProfileImpl(); |
| 43 | 47 |
| 44 static void RegisterUserPrefs(PrefService* prefs); | 48 static void RegisterUserPrefs(PrefService* prefs); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 #if defined(OS_CHROMEOS) | 135 #if defined(OS_CHROMEOS) |
| 132 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia); | 136 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia); |
| 133 virtual void OnLogin(); | 137 virtual void OnLogin(); |
| 134 virtual void SetupChromeOSEnterpriseExtensionObserver(); | 138 virtual void SetupChromeOSEnterpriseExtensionObserver(); |
| 135 virtual void InitChromeOSPreferences(); | 139 virtual void InitChromeOSPreferences(); |
| 136 #endif // defined(OS_CHROMEOS) | 140 #endif // defined(OS_CHROMEOS) |
| 137 | 141 |
| 138 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); | 142 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); |
| 139 virtual prerender::PrerenderManager* GetPrerenderManager(); | 143 virtual prerender::PrerenderManager* GetPrerenderManager(); |
| 140 | 144 |
| 145 virtual base::WaitableEvent* ClearAppCache(); |
| 146 |
| 141 // NotificationObserver implementation. | 147 // NotificationObserver implementation. |
| 142 virtual void Observe(int type, | 148 virtual void Observe(int type, |
| 143 const NotificationSource& source, | 149 const NotificationSource& source, |
| 144 const NotificationDetails& details); | 150 const NotificationDetails& details); |
| 145 | 151 |
| 146 // SpellCheckHostObserver implementation. | 152 // SpellCheckHostObserver implementation. |
| 147 virtual void SpellCheckHostInitialized(); | 153 virtual void SpellCheckHostInitialized(); |
| 148 | 154 |
| 149 private: | 155 private: |
| 150 friend class Profile; | 156 friend class Profile; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 301 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 296 | 302 |
| 297 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 303 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
| 298 | 304 |
| 299 Profile::Delegate* delegate_; | 305 Profile::Delegate* delegate_; |
| 300 | 306 |
| 301 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 307 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 302 }; | 308 }; |
| 303 | 309 |
| 304 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 310 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |