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

Unified Diff: net/http/http_stream_factory_impl_job.cc

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
Index: net/http/http_stream_factory_impl_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index e3ca09e7e606d9fe5d23ece130c72a30188d7fed..544e28d5f68090cf0656089102021723169f99ee 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -785,7 +785,7 @@ int HttpStreamFactoryImpl::Job::DoResolveProxy() {
return session_->proxy_service()->ResolveProxy(
origin_url_, request_info_.method, &proxy_info_, io_callback_,
- &pac_request_, session_->params().proxy_delegate, net_log_);
+ &pac_request_, session_->context().proxy_delegate, net_log_);
}
int HttpStreamFactoryImpl::Job::DoResolveProxyComplete(int result) {
@@ -1213,7 +1213,7 @@ int HttpStreamFactoryImpl::Job::DoCreateStream() {
if (using_ssl_ && connection_->socket()) {
SSLClientSocket* ssl_socket =
static_cast<SSLClientSocket*>(connection_->socket());
- RecordChannelIDKeyMatch(ssl_socket, session_->params().channel_id_service,
+ RecordChannelIDKeyMatch(ssl_socket, session_->context().channel_id_service,
destination_.HostForURL());
}
@@ -1305,7 +1305,7 @@ int HttpStreamFactoryImpl::Job::DoCreateStreamComplete(int result) {
return result;
session_->proxy_service()->ReportSuccess(proxy_info_,
- session_->params().proxy_delegate);
+ session_->context().proxy_delegate);
next_state_ = STATE_NONE;
return OK;
}
@@ -1485,7 +1485,8 @@ int HttpStreamFactoryImpl::Job::ReconsiderProxyAfterError(int error) {
int rv = session_->proxy_service()->ReconsiderProxyAfterError(
request_info_.url, request_info_.method, error, &proxy_info_,
- io_callback_, &pac_request_, session_->params().proxy_delegate, net_log_);
+ io_callback_, &pac_request_, session_->context().proxy_delegate,
+ net_log_);
if (rv == OK || rv == ERR_IO_PENDING) {
// If the error was during connection setup, there is no socket to
// disconnect.
« no previous file with comments | « net/http/http_response_body_drainer_unittest.cc ('k') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698