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

Unified Diff: ios/web_view/internal/web_view_url_request_context_getter.mm

Issue 2907463002: Split HttpNetworkSession::Params into two structs. (Closed)
Patch Set: Response to comments Created 3 years, 7 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
« no previous file with comments | « ios/web/shell/shell_url_request_context_getter.mm ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/web_view_url_request_context_getter.mm
diff --git a/ios/web_view/internal/web_view_url_request_context_getter.mm b/ios/web_view/internal/web_view_url_request_context_getter.mm
index ca1032917fa669ea41c9905f35d463af02e80433..b35f433b50d0d0819c503920ea22dd66b0b04b5c 100644
--- a/ios/web_view/internal/web_view_url_request_context_getter.mm
+++ b/ios/web_view/internal/web_view_url_request_context_getter.mm
@@ -119,27 +119,27 @@ net::URLRequestContext* WebViewURLRequestContextGetter::GetURLRequestContext() {
net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get()));
storage_->set_host_resolver(std::move(host_resolver));
- net::HttpNetworkSession::Params network_session_params;
- network_session_params.cert_verifier =
+ net::HttpNetworkSession::Context network_session_context;
+ network_session_context.cert_verifier =
url_request_context_->cert_verifier();
- network_session_params.transport_security_state =
+ network_session_context.transport_security_state =
url_request_context_->transport_security_state();
- network_session_params.cert_transparency_verifier =
+ network_session_context.cert_transparency_verifier =
url_request_context_->cert_transparency_verifier();
- network_session_params.channel_id_service =
+ network_session_context.channel_id_service =
url_request_context_->channel_id_service();
- network_session_params.net_log = url_request_context_->net_log();
- network_session_params.proxy_service =
+ network_session_context.net_log = url_request_context_->net_log();
+ network_session_context.proxy_service =
url_request_context_->proxy_service();
- network_session_params.ssl_config_service =
+ network_session_context.ssl_config_service =
url_request_context_->ssl_config_service();
- network_session_params.http_auth_handler_factory =
+ network_session_context.http_auth_handler_factory =
url_request_context_->http_auth_handler_factory();
- network_session_params.http_server_properties =
+ network_session_context.http_server_properties =
url_request_context_->http_server_properties();
- network_session_params.host_resolver =
+ network_session_context.host_resolver =
url_request_context_->host_resolver();
- network_session_params.ct_policy_enforcer =
+ network_session_context.ct_policy_enforcer =
url_request_context_->ct_policy_enforcer();
base::FilePath cache_path = base_path_.Append(FILE_PATH_LITERAL("Cache"));
@@ -149,7 +149,8 @@ net::URLRequestContext* WebViewURLRequestContextGetter::GetURLRequestContext() {
cache_path, 0, cache_task_runner_));
storage_->set_http_network_session(
- base::MakeUnique<net::HttpNetworkSession>(network_session_params));
+ base::MakeUnique<net::HttpNetworkSession>(
+ net::HttpNetworkSession::Params(), network_session_context));
storage_->set_http_transaction_factory(base::MakeUnique<net::HttpCache>(
storage_->http_network_session(), std::move(main_backend),
true /* set_up_quic_server_info */));
« no previous file with comments | « ios/web/shell/shell_url_request_context_getter.mm ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698