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

Unified Diff: net/http/http_server_properties.h

Issue 999893002: Revert of Add IsAlternativeServiceBroken(), remove is_broken. (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
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_server_properties.cc » ('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 a27cf806c4a833123a1be06e35d92f40d43f4e75..e8796cb752c7d9e833d522a53d40b09d6fe604ef 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -120,12 +120,27 @@
struct NET_EXPORT AlternateProtocolInfo {
AlternateProtocolInfo()
- : port(0), protocol(UNINITIALIZED_ALTERNATE_PROTOCOL), probability(0) {}
+ : port(0),
+ protocol(UNINITIALIZED_ALTERNATE_PROTOCOL),
+ probability(0),
+ is_broken(false) {}
AlternateProtocolInfo(uint16 port,
AlternateProtocol protocol,
double probability)
- : port(port), protocol(protocol), probability(probability) {}
+ : port(port),
+ protocol(protocol),
+ probability(probability),
+ is_broken(false) {}
+
+ AlternateProtocolInfo(uint16 port,
+ AlternateProtocol protocol,
+ double probability,
+ bool is_broken)
+ : port(port),
+ protocol(protocol),
+ probability(probability),
+ is_broken(is_broken) {}
bool Equals(const AlternateProtocolInfo& other) const {
return port == other.port &&
@@ -138,6 +153,7 @@
uint16 port;
AlternateProtocol protocol;
double probability;
+ bool is_broken;
};
struct NET_EXPORT SupportsQuic {
@@ -221,10 +237,6 @@
// Sets the Alternate-Protocol for |server| to be BROKEN.
virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0;
- // Returns true iff |alternative_service| is currently broken.
- virtual bool IsAlternativeServiceBroken(
- const AlternativeService& alternative_service) = 0;
-
// Returns true if Alternate-Protocol for |server| was recently BROKEN.
virtual bool WasAlternateProtocolRecentlyBroken(
const HostPortPair& server) = 0;
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698