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

Unified Diff: trunk/src/chrome/browser/profiles/profile_io_data.h

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/profiles/profile_io_data.h
===================================================================
--- trunk/src/chrome/browser/profiles/profile_io_data.h (revision 219785)
+++ trunk/src/chrome/browser/profiles/profile_io_data.h (working copy)
@@ -99,6 +99,7 @@
ChromeURLRequestContext* GetMainRequestContext() const;
ChromeURLRequestContext* GetMediaRequestContext() const;
+ ChromeURLRequestContext* GetExtensionsRequestContext() const;
ChromeURLRequestContext* GetIsolatedAppRequestContext(
ChromeURLRequestContext* main_context,
const StoragePartitionDescriptor& partition_descriptor,
@@ -152,6 +153,10 @@
return &one_click_signin_rejected_email_list_;
}
+ ChromeURLRequestContext* extensions_request_context() const {
+ return extensions_request_context_.get();
+ }
+
BooleanPrefMember* safe_browsing_enabled() const {
return &safe_browsing_enabled_;
}
@@ -220,6 +225,7 @@
explicit AppRequestContext(
chrome_browser_net::LoadTimeStats* load_time_stats);
+ void SetCookieStore(net::CookieStore* cookie_store);
void SetHttpTransactionFactory(
scoped_ptr<net::HttpTransactionFactory> http_factory);
void SetJobFactory(scoped_ptr<net::URLRequestJobFactory> job_factory);
@@ -227,6 +233,7 @@
private:
virtual ~AppRequestContext();
+ scoped_refptr<net::CookieStore> cookie_store_;
scoped_ptr<net::HttpTransactionFactory> http_factory_;
scoped_ptr<net::URLRequestJobFactory> job_factory_;
};
@@ -242,6 +249,7 @@
scoped_refptr<CookieSettings> cookie_settings;
scoped_refptr<HostContentSettingsMap> host_content_settings_map;
scoped_refptr<net::SSLConfigService> ssl_config_service;
+ scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate;
scoped_refptr<ExtensionInfoMap> extension_info_map;
scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
resource_prefetch_predictor_observer_;
@@ -384,6 +392,9 @@
ProfileParams* profile_params,
content::ProtocolHandlerMap* protocol_handlers) const = 0;
+ // Initializes the RequestContext for extensions.
+ virtual void InitializeExtensionsRequestContext(
+ ProfileParams* profile_params) const = 0;
// Does an on-demand initialization of a RequestContext for the given
// isolated app.
virtual ChromeURLRequestContext* InitializeAppRequestContext(
@@ -499,6 +510,7 @@
// These are only valid in between LazyInitialize() and their accessor being
// called.
mutable scoped_ptr<ChromeURLRequestContext> main_request_context_;
+ mutable scoped_ptr<ChromeURLRequestContext> extensions_request_context_;
// One URLRequestContext per isolated app for main and media requests.
mutable URLRequestContextMap app_request_context_map_;
mutable URLRequestContextMap isolated_media_request_context_map_;
« no previous file with comments | « trunk/src/chrome/browser/profiles/profile_impl_io_data.cc ('k') | trunk/src/chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698