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