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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 989273005: Add MarkAlternativeServiceRecentlyBroken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: net/http/http_server_properties_impl.cc
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
index 7ea613eda7b7313e82e68fcb735899e0f4486e7c..47b33091172dc44e72c4daf65b2330c2de65a34d 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -343,6 +343,12 @@ void HttpServerPropertiesImpl::SetBrokenAlternateProtocol(
}
}
+void HttpServerPropertiesImpl::MarkAlternativeServiceRecentlyBroken(
+ const AlternativeService& alternative_service) {
+ if (recently_broken_alternative_services_[alternative_service] == 0)
Ryan Hamilton 2015/03/11 20:28:02 If it were me, I'd replace this if: if (!Contains
Bence 2015/03/12 01:12:53 Done.
+ recently_broken_alternative_services_[alternative_service] = 1;
+}
+
bool HttpServerPropertiesImpl::IsAlternativeServiceBroken(
const AlternativeService& alternative_service) {
return ContainsKey(broken_alternative_services_, alternative_service);

Powered by Google App Engine
This is Rietveld 408576698