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

Unified Diff: net/http/http_server_properties_manager.h

Issue 2901093004: Add and persist a new field in AlternativeServiceInfo to list QUIC verisons advertised (Closed)
Patch Set: fix compile in components Created 3 years, 6 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_server_properties_manager.h
diff --git a/net/http/http_server_properties_manager.h b/net/http/http_server_properties_manager.h
index 0b7dc11045eeef114ea5395029c30561b8bc64ea..9fe8ddee3b3431bcf3936515973e9008bdf3aae3 100644
--- a/net/http/http_server_properties_manager.h
+++ b/net/http/http_server_properties_manager.h
@@ -127,9 +127,11 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
SSLConfig* ssl_config) override;
AlternativeServiceInfoVector GetAlternativeServiceInfos(
const url::SchemeHostPort& origin) override;
- bool SetAlternativeService(const url::SchemeHostPort& origin,
- const AlternativeService& alternative_service,
- base::Time expiration) override;
+ bool SetAlternativeService(
+ const url::SchemeHostPort& origin,
+ const AlternativeService& alternative_service,
+ base::Time expiration,
+ const QuicVersionVector& advertised_versions) override;
bool SetAlternativeServices(const url::SchemeHostPort& origin,
const AlternativeServiceInfoVector&
alternative_service_info_vector) override;
@@ -244,6 +246,8 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
AddToAlternativeServiceMap);
+ FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
+ ReadAdvertisedVersionsFromPref);
FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
DoNotLoadAltSvcForInsecureOrigins);
FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,

Powered by Google App Engine
This is Rietveld 408576698