Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: most unittests pass Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 bool IsOffTheRecord() const OVERRIDE;
66 virtual content::CookieStoreConfig GetCookieStoreConfig() OVERRIDE;
65 virtual content::DownloadManagerDelegate* 67 virtual content::DownloadManagerDelegate*
66 GetDownloadManagerDelegate() OVERRIDE; 68 GetDownloadManagerDelegate() OVERRIDE;
67 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 69 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
68 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 70 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
69 int renderer_child_id) OVERRIDE; 71 int renderer_child_id) OVERRIDE;
70 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 72 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
71 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 73 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
72 int renderer_child_id) OVERRIDE; 74 int renderer_child_id) OVERRIDE;
73 virtual net::URLRequestContextGetter* 75 virtual net::URLRequestContextGetter*
74 GetMediaRequestContextForStoragePartition( 76 GetMediaRequestContextForStoragePartition(
75 const base::FilePath& partition_path, 77 const base::FilePath& partition_path,
76 bool in_memory) OVERRIDE; 78 bool in_memory) OVERRIDE;
77 virtual void RequestMIDISysExPermission( 79 virtual void RequestMIDISysExPermission(
78 int render_process_id, 80 int render_process_id,
79 int render_view_id, 81 int render_view_id,
80 const GURL& requesting_frame, 82 const GURL& requesting_frame,
81 const MIDISysExPermissionCallback& callback) OVERRIDE; 83 const MIDISysExPermissionCallback& callback) OVERRIDE;
82 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 84 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
83 virtual content::GeolocationPermissionContext* 85 virtual content::GeolocationPermissionContext*
84 GetGeolocationPermissionContext() OVERRIDE; 86 GetGeolocationPermissionContext() OVERRIDE;
85 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 87 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
86 88
87 // Profile implementation: 89 // Profile implementation:
88 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 90 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
89 // Note that this implementation returns the Google-services username, if any, 91 // Note that this implementation returns the Google-services username, if any,
90 // not the Chrome user's display name. 92 // not the Chrome user's display name.
91 virtual std::string GetProfileName() OVERRIDE; 93 virtual std::string GetProfileName() OVERRIDE;
92 virtual bool IsOffTheRecord() const OVERRIDE;
93 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 94 virtual Profile* GetOffTheRecordProfile() OVERRIDE;
94 virtual void DestroyOffTheRecordProfile() OVERRIDE; 95 virtual void DestroyOffTheRecordProfile() OVERRIDE;
95 virtual bool HasOffTheRecordProfile() OVERRIDE; 96 virtual bool HasOffTheRecordProfile() OVERRIDE;
96 virtual Profile* GetOriginalProfile() OVERRIDE; 97 virtual Profile* GetOriginalProfile() OVERRIDE;
97 virtual history::TopSites* GetTopSites() OVERRIDE; 98 virtual history::TopSites* GetTopSites() OVERRIDE;
98 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 99 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
99 virtual ExtensionService* GetExtensionService() OVERRIDE; 100 virtual ExtensionService* GetExtensionService() OVERRIDE;
100 virtual ExtensionSpecialStoragePolicy* 101 virtual ExtensionSpecialStoragePolicy*
101 GetExtensionSpecialStoragePolicy() OVERRIDE; 102 GetExtensionSpecialStoragePolicy() OVERRIDE;
102 virtual PrefService* GetPrefs() OVERRIDE; 103 virtual PrefService* GetPrefs() OVERRIDE;
103 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 104 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
104 virtual net::URLRequestContextGetter*
105 GetRequestContextForExtensions() OVERRIDE;
106 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 105 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
107 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 106 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
108 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 107 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
109 virtual base::Time GetStartTime() const OVERRIDE; 108 virtual base::Time GetStartTime() const OVERRIDE;
110 virtual net::URLRequestContextGetter* CreateRequestContext( 109 virtual net::URLRequestContextGetter* CreateRequestContext(
111 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; 110 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE;
112 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 111 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
113 const base::FilePath& partition_path, 112 const base::FilePath& partition_path,
114 bool in_memory, 113 bool in_memory,
115 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; 114 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 scoped_ptr<chromeos::Preferences> chromeos_preferences_; 245 scoped_ptr<chromeos::Preferences> chromeos_preferences_;
247 246
248 scoped_ptr<chromeos::EnterpriseExtensionObserver> 247 scoped_ptr<chromeos::EnterpriseExtensionObserver>
249 chromeos_enterprise_extension_observer_; 248 chromeos_enterprise_extension_observer_;
250 249
251 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_; 250 scoped_ptr<chromeos::LocaleChangeGuard> locale_change_guard_;
252 #endif 251 #endif
253 252
254 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 253 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
255 254
255 scoped_refptr<net::CookieMonsterDelegate> cookie_delegate_;
256
256 // STOP!!!! DO NOT ADD ANY MORE ITEMS HERE!!!! 257 // STOP!!!! DO NOT ADD ANY MORE ITEMS HERE!!!!
257 // 258 //
258 // 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
259 // Profile use our new BrowserContextKeyedServiceFactory system instead. 260 // Profile use our new BrowserContextKeyedServiceFactory system instead.
260 // You can find the design document here: 261 // You can find the design document here:
261 // 262 //
262 // 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
263 // 264 //
264 // and you can read the raw headers here: 265 // and you can read the raw headers here:
265 // 266 //
266 // 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}
267 // components/browser_context_keyed_service/browser_context_keyed_service.h 268 // components/browser_context_keyed_service/browser_context_keyed_service.h
268 // 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}
269 270
270 Profile::Delegate* delegate_; 271 Profile::Delegate* delegate_;
271 272
272 chrome_browser_net::Predictor* predictor_; 273 chrome_browser_net::Predictor* predictor_;
273 274
274 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
275 }; 276 };
276 277
277 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698