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

Unified Diff: net/http/http_stream_factory.cc

Issue 2901093004: Add and persist a new field in AlternativeServiceInfo to list QUIC verisons advertised (Closed)
Patch Set: self review 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.cc
diff --git a/net/http/http_stream_factory.cc b/net/http/http_stream_factory.cc
index 2c7eed610948b07a67249626b36baebbdd9c03dd..babb50084b6ed3f88add5d668a3f60771fae4485 100644
--- a/net/http/http_stream_factory.cc
+++ b/net/http/http_stream_factory.cc
@@ -75,8 +75,11 @@ void HttpStreamFactory::ProcessAlternativeServices(
base::Time expiration =
base::Time::Now() +
base::TimeDelta::FromSeconds(alternative_service_entry.max_age);
- AlternativeServiceInfo alternative_service_info(alternative_service,
- expiration);
+ // TODO(zhongyi): set mutually supported versions to AlternativeServiceInfo
+ // in the subsequent CL.
+ AlternativeServiceInfo alternative_service_info(
+ alternative_service, expiration,
+ session->params().quic_supported_versions);
alternative_service_info_vector.push_back(alternative_service_info);
}

Powered by Google App Engine
This is Rietveld 408576698