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

Unified Diff: net/http/http_server_properties.h

Issue 2917913002: Add getters and setters for BrokenAlternativeService's list of broken and recently-broken alt svcs (Closed)
Patch Set: Fixed entry override logic in SetBrokenAndRecentlyBrokenAlternativeServices() 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.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index 27d8b078c8aa2c9ac210329f114af43c467c58f7..172480a00d251965f146e812726e590bcdba85b3 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -202,6 +202,9 @@ typedef std::vector<AlternativeService> AlternativeServiceVector;
typedef std::vector<AlternativeServiceInfo> AlternativeServiceInfoVector;
typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector>
AlternativeServiceMap;
+// Pairs of broken alternative services and when their brokenness expires.
+typedef std::list<std::pair<AlternativeService, base::TimeTicks>>
+ BrokenAlternativeServiceList;
// Map to the number of times each alternative service has been marked broken.
typedef base::MRUCache<AlternativeService, int>
RecentlyBrokenAlternativeServices;

Powered by Google App Engine
This is Rietveld 408576698