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

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 Canonical test 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
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a2a753ac059b3a32b4aa287756735fba20916ca3..bb2132f904f6da1bc22a2436a71984335c09918f 100644
--- a/net/http/http_server_properties_manager.h
+++ b/net/http/http_server_properties_manager.h
@@ -129,9 +129,14 @@ 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 SetHttp2AlternativeService(const url::SchemeHostPort& origin,
+ const AlternativeService& alternative_service,
+ base::Time expiration) override;
+ bool SetQuicAlternativeService(
+ 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;
@@ -245,6 +250,8 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
private:
FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
AddToAlternativeServiceMap);
+ FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
+ ReadAdvertisedVersionsFromPref);
FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
DoNotLoadAltSvcForInsecureOrigins);
FRIEND_TEST_ALL_PREFIXES(HttpServerPropertiesManagerTest,
« no previous file with comments | « net/http/http_server_properties_impl_unittest.cc ('k') | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698