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

Unified Diff: net/http/http_network_transaction.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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction_ssl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index e29b01d43e23a9c2f99c2bf647a483e891c25022..32aa872a96e32c90fce7abc17386e88ef57c45c1 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -610,7 +610,7 @@ bool HttpNetworkTransaction::IsTokenBindingEnabled() const {
stream_->GetSSLInfo(&ssl_info);
return ssl_info.token_binding_negotiated &&
ssl_info.token_binding_key_param == TB_PARAM_ECDSAP256 &&
- session_->params().channel_id_service;
+ session_->context().channel_id_service;
}
void HttpNetworkTransaction::RecordTokenBindingSupport() const {
@@ -628,7 +628,7 @@ void HttpNetworkTransaction::RecordTokenBindingSupport() const {
stream_->GetSSLInfo(&ssl_info);
if (!session_->params().enable_token_binding) {
supported = DISABLED;
- } else if (!session_->params().channel_id_service) {
+ } else if (!session_->context().channel_id_service) {
supported = CLIENT_NO_CHANNEL_ID_SERVICE;
} else if (ssl_info.token_binding_negotiated) {
supported = CLIENT_AND_SERVER;
@@ -969,7 +969,7 @@ int HttpNetworkTransaction::DoGetProvidedTokenBindingKey() {
return OK;
net_log_.BeginEvent(NetLogEventType::HTTP_TRANSACTION_GET_TOKEN_BINDING_KEY);
- ChannelIDService* channel_id_service = session_->params().channel_id_service;
+ ChannelIDService* channel_id_service = session_->context().channel_id_service;
return channel_id_service->GetOrCreateChannelID(
request_->url.host(), &provided_token_binding_key_, io_callback_,
&token_binding_request_);
@@ -993,7 +993,7 @@ int HttpNetworkTransaction::DoGetReferredTokenBindingKey() {
return OK;
net_log_.BeginEvent(NetLogEventType::HTTP_TRANSACTION_GET_TOKEN_BINDING_KEY);
- ChannelIDService* channel_id_service = session_->params().channel_id_service;
+ ChannelIDService* channel_id_service = session_->context().channel_id_service;
return channel_id_service->GetOrCreateChannelID(
request_->token_binding_referrer, &referred_token_binding_key_,
io_callback_, &token_binding_request_);
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction_ssl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698