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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 187693003: Add a ClearAlternateProtocol method to HttpServerProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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.h ('k') | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de94dfed7e38e082f1a3fcc41e03c32e70ec3311..ef6d1ed54d9036f753005cbc2edd6542ff467eb2 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -266,6 +266,11 @@ void HttpServerPropertiesImpl::SetBrokenAlternateProtocol(
alternate_protocol_map_[server].protocol = ALTERNATE_PROTOCOL_BROKEN;
}
+void HttpServerPropertiesImpl::ClearAlternateProtocol(
+ const HostPortPair& server) {
+ alternate_protocol_map_.erase(server);
+}
+
const AlternateProtocolMap&
HttpServerPropertiesImpl::alternate_protocol_map() const {
return alternate_protocol_map_;
« no previous file with comments | « net/http/http_server_properties_impl.h ('k') | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698