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

Unified Diff: net/http/http_server_properties.h

Issue 701163002: Introduce AlternateProtocolInfo.is_broken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 6 years, 1 month 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 edf598ff029c4e6f79119c702fb001c2d33913c4..337f22de3695535bca8c0cc37ba75ebeb2b8e0d2 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -61,7 +61,6 @@ enum AlternateProtocol {
NPN_SPDY_MAXIMUM_VERSION = NPN_SPDY_4,
QUIC,
ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC,
- ALTERNATE_PROTOCOL_BROKEN, // The alternate protocol is known to be broken.
UNINITIALIZED_ALTERNATE_PROTOCOL,
};
@@ -88,7 +87,17 @@ struct NET_EXPORT AlternateProtocolInfo {
double probability)
: port(port),
protocol(protocol),
- probability(probability) {}
+ 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 &&
@@ -101,6 +110,7 @@ struct NET_EXPORT AlternateProtocolInfo {
uint16 port;
AlternateProtocol protocol;
double probability;
+ bool is_broken;
};
struct NET_EXPORT SupportsQuic {
« 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