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

Unified Diff: net/http/http_network_session.cc

Issue 1850043002: Check whether to enable token binding in preconnect.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HttpNetworkSession::GetSSLConfig populates both server and proxy configs Created 4 years, 8 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.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.cc
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index afb5ff04a70faad1af433ed89b6d74a82817aa8b..7bf2cdb579a06a4e6686a4ffdaa051f38e3ca4fc 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -385,6 +385,20 @@ void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const {
}
}
+void HttpNetworkSession::GetSSLConfig(const HttpRequestInfo& request,
+ SSLConfig* server_config,
+ SSLConfig* proxy_config) const {
+ ssl_config_service_->GetSSLConfig(server_config);
+ GetAlpnProtos(&server_config->alpn_protos);
+ GetNpnProtos(&server_config->npn_protos);
+ *proxy_config = *server_config;
+ if (request.privacy_mode == PRIVACY_MODE_ENABLED) {
+ server_config->channel_id_enabled = false;
+ } else if (params_.enable_token_binding && params_.channel_id_service) {
+ server_config->token_binding_params.push_back(TB_PARAM_ECDSAP256);
+ }
+}
+
ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager(
SocketPoolType pool_type) {
switch (pool_type) {
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698