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

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

Issue 1217563005: Create unique HttpNetworkSession for storage partition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wired up remaining state for HttpNetworkSession. Created 5 years, 6 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: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 4b2937b7b97303a1c2a56c29d905f22fa6df0220..cd0d9903ee7bf43c11f33b92fbf6d1839daef7a6 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -260,6 +260,20 @@ class ProfileIOData {
void SetHttpTransactionFactory(
scoped_ptr<net::HttpTransactionFactory> http_factory);
void SetJobFactory(scoped_ptr<net::URLRequestJobFactory> job_factory);
+ void SetHostResolver(scoped_ptr<net::HostResolver> host_resolver);
+ void SetCertVerifier(scoped_ptr<net::CertVerifier> vert_verifier);
+ void SetChannelIDService(
+ scoped_ptr<net::ChannelIDService> channel_id_service);
+ void SetTransportSecurityState(
+ scoped_ptr<net::TransportSecurityState> transport_security_state);
+ void SetCertTransparencyVerifier(
+ scoped_ptr<net::CTVerifier> cert_transparency_verifier);
+ void SetCertPolicyEnforcer(
+ scoped_ptr<net::CertPolicyEnforcer> cert_policy_enforcer);
+ net::CertPolicyEnforcer* cert_policy_enforcer() {
+ return owned_cert_policy_enforcer_.get();
+ }
+ void SetSSLConfigService(net::SSLConfigService* ssl_config_service);
private:
~AppRequestContext() override;
@@ -267,6 +281,16 @@ class ProfileIOData {
scoped_refptr<net::CookieStore> cookie_store_;
scoped_ptr<net::HttpTransactionFactory> http_factory_;
scoped_ptr<net::URLRequestJobFactory> job_factory_;
+ // The AppRequestContext needs to own certain state required by its
+ // isolated HttpNetworkSession.
+ scoped_ptr<net::HostResolver> owned_host_resolver_;
+ scoped_ptr<net::CertVerifier> owned_cert_verifier_;
+ scoped_ptr<net::ChannelIDService> owned_channel_id_service_;
+ scoped_ptr<net::TransportSecurityState> owned_transport_security_state_;
+ scoped_ptr<net::CTVerifier> owned_cert_transparency_verifier_;
+ scoped_ptr<net::CertPolicyEnforcer> owned_cert_policy_enforcer_;
+ // SSLConfigService is ref-counted.
+ net::SSLConfigService* owned_ssl_config_service_;
};
// Created on the UI thread, read on the IO thread during ProfileIOData lazy

Powered by Google App Engine
This is Rietveld 408576698