| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 public: | 55 public: |
| 56 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. | 56 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. |
| 57 static const char* const kPrefExitTypeNormal; | 57 static const char* const kPrefExitTypeNormal; |
| 58 | 58 |
| 59 virtual ~ProfileImpl(); | 59 virtual ~ProfileImpl(); |
| 60 | 60 |
| 61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 62 | 62 |
| 63 // content::BrowserContext implementation: | 63 // content::BrowserContext implementation: |
| 64 virtual base::FilePath GetPath() const OVERRIDE; | 64 virtual base::FilePath GetPath() const OVERRIDE; |
| 65 virtual void OverrideCookieStoreConfigs(const base::FilePath& partition_path, |
| 66 bool in_memory_partition, |
| 67 bool is_default_partition, |
| 68 CookieSchemeMap* configs) OVERRIDE; |
| 65 virtual content::DownloadManagerDelegate* | 69 virtual content::DownloadManagerDelegate* |
| 66 GetDownloadManagerDelegate() OVERRIDE; | 70 GetDownloadManagerDelegate() OVERRIDE; |
| 67 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 71 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 68 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 72 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 69 int renderer_child_id) OVERRIDE; | 73 int renderer_child_id) OVERRIDE; |
| 70 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 74 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| 71 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 75 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 72 int renderer_child_id) OVERRIDE; | 76 int renderer_child_id) OVERRIDE; |
| 73 virtual net::URLRequestContextGetter* | 77 virtual net::URLRequestContextGetter* |
| 74 GetMediaRequestContextForStoragePartition( | 78 GetMediaRequestContextForStoragePartition( |
| 75 const base::FilePath& partition_path, | 79 const base::FilePath& partition_path, |
| 76 bool in_memory) OVERRIDE; | 80 bool in_memory) OVERRIDE; |
| 77 virtual void RequestMIDISysExPermission( | 81 virtual void RequestMIDISysExPermission( |
| 78 int render_process_id, | 82 int render_process_id, |
| 79 int render_view_id, | 83 int render_view_id, |
| 80 const GURL& requesting_frame, | 84 const GURL& requesting_frame, |
| 81 const MIDISysExPermissionCallback& callback) OVERRIDE; | 85 const MIDISysExPermissionCallback& callback) OVERRIDE; |
| 82 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 86 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
| 83 virtual content::GeolocationPermissionContext* | 87 virtual content::GeolocationPermissionContext* |
| 84 GetGeolocationPermissionContext() OVERRIDE; | 88 GetGeolocationPermissionContext() OVERRIDE; |
| 85 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 89 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 86 | 90 |
| 87 // Profile implementation: | 91 // Profile implementation: |
| 88 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 92 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
| 89 // Note that this implementation returns the Google-services username, if any, | 93 // Note that this implementation returns the Google-services username, if any, |
| 90 // not the Chrome user's display name. | 94 // not the Chrome user's display name. |
| 91 virtual std::string GetProfileName() OVERRIDE; | 95 virtual std::string GetProfileName() OVERRIDE; |
| 92 virtual bool IsOffTheRecord() const OVERRIDE; | |
| 93 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 96 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
| 94 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 97 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
| 95 virtual bool HasOffTheRecordProfile() OVERRIDE; | 98 virtual bool HasOffTheRecordProfile() OVERRIDE; |
| 96 virtual Profile* GetOriginalProfile() OVERRIDE; | 99 virtual Profile* GetOriginalProfile() OVERRIDE; |
| 97 virtual bool IsManaged() OVERRIDE; | 100 virtual bool IsManaged() OVERRIDE; |
| 98 virtual history::TopSites* GetTopSites() OVERRIDE; | 101 virtual history::TopSites* GetTopSites() OVERRIDE; |
| 99 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 102 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
| 100 virtual ExtensionService* GetExtensionService() OVERRIDE; | 103 virtual ExtensionService* GetExtensionService() OVERRIDE; |
| 101 virtual ExtensionSpecialStoragePolicy* | 104 virtual ExtensionSpecialStoragePolicy* |
| 102 GetExtensionSpecialStoragePolicy() OVERRIDE; | 105 GetExtensionSpecialStoragePolicy() OVERRIDE; |
| 103 virtual PrefService* GetPrefs() OVERRIDE; | 106 virtual PrefService* GetPrefs() OVERRIDE; |
| 104 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 107 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
| 105 virtual net::URLRequestContextGetter* | |
| 106 GetRequestContextForExtensions() OVERRIDE; | |
| 107 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 108 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
| 108 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 109 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
| 109 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 110 virtual bool IsSameProfile(Profile* profile) OVERRIDE; |
| 110 virtual base::Time GetStartTime() const OVERRIDE; | 111 virtual base::Time GetStartTime() const OVERRIDE; |
| 111 virtual net::URLRequestContextGetter* CreateRequestContext( | 112 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 112 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 113 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
| 113 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 114 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 114 const base::FilePath& partition_path, | 115 const base::FilePath& partition_path, |
| 115 bool in_memory, | 116 bool in_memory, |
| 116 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 117 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 248 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
| 248 | 249 |
| 249 scoped_ptr<chromeos::EnterpriseExtensionObserver> | 250 scoped_ptr<chromeos::EnterpriseExtensionObserver> |
| 250 chromeos_enterprise_extension_observer_; | 251 chromeos_enterprise_extension_observer_; |
| 251 | 252 |
| 252 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; | 253 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; |
| 253 #endif | 254 #endif |
| 254 | 255 |
| 255 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 256 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 256 | 257 |
| 258 scoped_refptr<net::CookieMonsterDelegate> cookie_delegate_; |
| 259 |
| 257 // STOP!!!! DO NOT ADD ANY MORE ITEMS HERE!!!! | 260 // STOP!!!! DO NOT ADD ANY MORE ITEMS HERE!!!! |
| 258 // | 261 // |
| 259 // Instead, make your Service/Manager/whatever object you're hanging off the | 262 // Instead, make your Service/Manager/whatever object you're hanging off the |
| 260 // Profile use our new BrowserContextKeyedServiceFactory system instead. | 263 // Profile use our new BrowserContextKeyedServiceFactory system instead. |
| 261 // You can find the design document here: | 264 // You can find the design document here: |
| 262 // | 265 // |
| 263 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/p
rofile-architecture | 266 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/p
rofile-architecture |
| 264 // | 267 // |
| 265 // and you can read the raw headers here: | 268 // and you can read the raw headers here: |
| 266 // | 269 // |
| 267 // components/browser_context_keyed_service/browser_context_dependency_manag
er.{h,cc} | 270 // components/browser_context_keyed_service/browser_context_dependency_manag
er.{h,cc} |
| 268 // components/browser_context_keyed_service/browser_context_keyed_service.h | 271 // components/browser_context_keyed_service/browser_context_keyed_service.h |
| 269 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} | 272 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} |
| 270 | 273 |
| 271 Profile::Delegate* delegate_; | 274 Profile::Delegate* delegate_; |
| 272 | 275 |
| 273 chrome_browser_net::Predictor* predictor_; | 276 chrome_browser_net::Predictor* predictor_; |
| 274 | 277 |
| 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 276 }; | 279 }; |
| 277 | 280 |
| 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |