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

Unified Diff: net/http/http_server_properties.h

Issue 989253005: Use linked hash map for broken alternative service queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: nits. Created 5 years, 9 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 | « no previous file | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index fcc89f7fd672a0bbbe82ed314d08e54ac3428b10..1030dbd44a07245ebf6f51c38e27c2059a998262 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -99,6 +99,11 @@ struct NET_EXPORT AlternativeService {
AlternativeService& operator=(const AlternativeService& alternative_service) =
default;
+ bool operator==(const AlternativeService& other) const {
+ return protocol == other.protocol && host == other.host &&
+ port == other.port;
+ }
+
bool operator<(const AlternativeService& other) const {
if (protocol != other.protocol)
return protocol < other.protocol;
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698