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

Unified Diff: net/http/http_server_properties.h

Issue 874603004: Remove HasAlternateProtocol(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor. Created 5 years, 11 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 840a3595d399f986bdc49b7a69cd14ac30f85e8d..a73b4eb17cd868b7cc99d1d119259d4301f3b2d0 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -190,11 +190,9 @@ class NET_EXPORT HttpServerProperties {
virtual void MaybeForceHTTP11(const HostPortPair& server,
SSLConfig* ssl_config) = 0;
- // Returns true if |server| has an Alternate-Protocol header.
- virtual bool HasAlternateProtocol(const HostPortPair& server) = 0;
-
- // Returns the Alternate-Protocol and port for |server|.
- // HasAlternateProtocol(server) must be true.
+ // Returns the AlternateProtocol for |server| if it has probability equal to
+ // or exceeding threshold, or else the forced AlternateProtocol if there is
+ // one, or else one with UNINITIALIZED_ALTERNATE_PROTOCOL.
virtual AlternateProtocolInfo GetAlternateProtocol(
const HostPortPair& server) = 0;

Powered by Google App Engine
This is Rietveld 408576698