| 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 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "chrome/browser/prefs/pref_change_registrar.h" | 15 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/profiles/profile_impl_io_data.h" | 17 #include "chrome/browser/profiles/profile_impl_io_data.h" |
| 18 #include "content/common/notification_observer.h" | 18 #include "content/common/notification_observer.h" |
| 19 #include "content/common/notification_registrar.h" | 19 #include "content/common/notification_registrar.h" |
| 20 | 20 |
| 21 class ChromeDownloadManagerDelegate; | 21 class ChromeDownloadManagerDelegate; |
| 22 class ExtensionPrefs; | 22 class ExtensionPrefs; |
| 23 class ExtensionPrefValueMap; | 23 class ExtensionPrefValueMap; |
| 24 class ExtensionSettings; | 24 class ExtensionSettings; |
| 25 class NetPrefObserver; |
| 25 class PrefService; | 26 class PrefService; |
| 26 class SpellCheckProfile; | 27 class SpellCheckProfile; |
| 27 | 28 |
| 28 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 29 namespace chromeos { | 30 namespace chromeos { |
| 30 class EnterpriseExtensionObserver; | 31 class EnterpriseExtensionObserver; |
| 31 class LocaleChangeGuard; | 32 class LocaleChangeGuard; |
| 32 class Preferences; | 33 class Preferences; |
| 33 } | 34 } |
| 34 #endif | 35 #endif |
| 35 | 36 |
| 36 class NetPrefObserver; | |
| 37 | |
| 38 // The default profile implementation. | 37 // The default profile implementation. |
| 39 class ProfileImpl : public Profile, | 38 class ProfileImpl : public Profile, |
| 40 public NotificationObserver { | 39 public NotificationObserver { |
| 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(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual ProfileSyncService* GetProfileSyncService(); | 116 virtual ProfileSyncService* GetProfileSyncService(); |
| 118 virtual ProfileSyncService* GetProfileSyncService( | 117 virtual ProfileSyncService* GetProfileSyncService( |
| 119 const std::string& cros_user); | 118 const std::string& cros_user); |
| 120 virtual TokenService* GetTokenService(); | 119 virtual TokenService* GetTokenService(); |
| 121 void InitSyncService(const std::string& cros_user); | 120 void InitSyncService(const std::string& cros_user); |
| 122 virtual ChromeBlobStorageContext* GetBlobStorageContext(); | 121 virtual ChromeBlobStorageContext* GetBlobStorageContext(); |
| 123 virtual ExtensionInfoMap* GetExtensionInfoMap(); | 122 virtual ExtensionInfoMap* GetExtensionInfoMap(); |
| 124 virtual PromoCounter* GetInstantPromoCounter(); | 123 virtual PromoCounter* GetInstantPromoCounter(); |
| 125 virtual BrowserSignin* GetBrowserSignin(); | 124 virtual BrowserSignin* GetBrowserSignin(); |
| 126 virtual ChromeURLDataManager* GetChromeURLDataManager(); | 125 virtual ChromeURLDataManager* GetChromeURLDataManager(); |
| 126 virtual policy::HostBlacklistManager* GetHostBlacklistManager(); |
| 127 | 127 |
| 128 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
| 129 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia); | 129 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia); |
| 130 virtual void OnLogin(); | 130 virtual void OnLogin(); |
| 131 virtual void SetupChromeOSEnterpriseExtensionObserver(); | 131 virtual void SetupChromeOSEnterpriseExtensionObserver(); |
| 132 virtual void InitChromeOSPreferences(); | 132 virtual void InitChromeOSPreferences(); |
| 133 #endif // defined(OS_CHROMEOS) | 133 #endif // defined(OS_CHROMEOS) |
| 134 | 134 |
| 135 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); | 135 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); |
| 136 virtual prerender::PrerenderManager* GetPrerenderManager(); | 136 virtual prerender::PrerenderManager* GetPrerenderManager(); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 scoped_ptr<chromeos::EnterpriseExtensionObserver> | 284 scoped_ptr<chromeos::EnterpriseExtensionObserver> |
| 285 chromeos_enterprise_extension_observer_; | 285 chromeos_enterprise_extension_observer_; |
| 286 | 286 |
| 287 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; | 287 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; |
| 288 #endif | 288 #endif |
| 289 | 289 |
| 290 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 290 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 291 | 291 |
| 292 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 292 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
| 293 | 293 |
| 294 scoped_refptr<policy::HostBlacklistManager> host_blacklist_manager_; |
| 295 |
| 294 Profile::Delegate* delegate_; | 296 Profile::Delegate* delegate_; |
| 295 | 297 |
| 296 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 298 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 297 }; | 299 }; |
| 298 | 300 |
| 299 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 301 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |