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

Unified Diff: net/http/http_server_properties.h

Issue 1017453008: Make GetAlternateProtocol return AlternativeService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/server/origin/g in other methods too. 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 | « net/http/http_network_transaction_unittest.cc ('k') | 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 21e8953f5c546e96fa23d5e002387c1e6f8a4c8a..edaaf66e0fa7ca65ac8018454d8fc7a204ee7fd9 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -205,20 +205,20 @@ class NET_EXPORT HttpServerProperties {
virtual void MaybeForceHTTP11(const HostPortPair& server,
SSLConfig* ssl_config) = 0;
- // Returns the AlternateProtocol for |server| if it has probability equal to
+ // Returns the alternative service for |origin| 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;
+ virtual AlternativeService GetAlternativeService(
+ const HostPortPair& origin) = 0;
// Sets the Alternate-Protocol for |server|.
- virtual void SetAlternateProtocol(const HostPortPair& server,
+ virtual void SetAlternateProtocol(const HostPortPair& origin,
uint16 alternate_port,
AlternateProtocol alternate_protocol,
double probability) = 0;
// Sets the Alternate-Protocol for |server| to be BROKEN.
- virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0;
+ virtual void SetBrokenAlternateProtocol(const HostPortPair& origin) = 0;
// Marks |alternative_service| as recently broken.
virtual void MarkAlternativeServiceRecentlyBroken(
@@ -230,13 +230,13 @@ class NET_EXPORT HttpServerProperties {
// Returns true if Alternate-Protocol for |server| was recently BROKEN.
virtual bool WasAlternateProtocolRecentlyBroken(
- const HostPortPair& server) = 0;
+ const HostPortPair& origin) = 0;
// Confirms that Alternate-Protocol for |server| is working.
- virtual void ConfirmAlternateProtocol(const HostPortPair& server) = 0;
+ virtual void ConfirmAlternateProtocol(const HostPortPair& origin) = 0;
// Clears the Alternate-Protocol for |server|.
- virtual void ClearAlternateProtocol(const HostPortPair& server) = 0;
+ virtual void ClearAlternateProtocol(const HostPortPair& origin) = 0;
// Returns all Alternate-Protocol mappings.
virtual const AlternateProtocolMap& alternate_protocol_map() const = 0;
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698