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

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: Lint. 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
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..1b647c52d1c55c74d6d1515ceb2285719f08dc54 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,
};
@@ -85,10 +84,12 @@ NET_EXPORT_PRIVATE AlternateProtocol AlternateProtocolFromNextProto(
struct NET_EXPORT AlternateProtocolInfo {
AlternateProtocolInfo(uint16 port,
AlternateProtocol protocol,
- double probability)
+ double probability,
+ bool is_broken = false)
Ryan Hamilton 2014/11/05 17:05:19 Alas, using arguments with default values is prohi
Bence 2014/11/06 00:26:00 Done.
: port(port),
protocol(protocol),
- probability(probability) {}
+ probability(probability),
+ is_broken(is_broken) {}
bool Equals(const AlternateProtocolInfo& other) const {
return port == other.port &&
@@ -101,6 +102,7 @@ struct NET_EXPORT AlternateProtocolInfo {
uint16 port;
AlternateProtocol protocol;
double probability;
+ bool is_broken;
};
struct NET_EXPORT SupportsQuic {

Powered by Google App Engine
This is Rietveld 408576698