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

Unified Diff: net/quic/core/quic_versions.cc

Issue 2879533003: Add QUIC v40 which will be used to include changes: (Closed)
Patch Set: Created 3 years, 7 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/quic/core/quic_versions.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_versions.cc
diff --git a/net/quic/core/quic_versions.cc b/net/quic/core/quic_versions.cc
index a959726734e72aabc7d39e3e88f2d916be49e30c..3a92624ac02247a21537baeeb9a8c76f2a82fc51 100644
--- a/net/quic/core/quic_versions.cc
+++ b/net/quic/core/quic_versions.cc
@@ -30,7 +30,13 @@ QuicVersionVector FilterSupportedVersions(QuicVersionVector versions) {
QuicVersionVector filtered_versions(versions.size());
filtered_versions.clear(); // Guaranteed by spec not to change capacity.
for (QuicVersion version : versions) {
- if (version == QUIC_VERSION_39) {
+ if (version == QUIC_VERSION_40) {
+ if (GetQuicFlag(FLAGS_quic_enable_version_40) &&
+ FLAGS_quic_reloadable_flag_quic_enable_version_39 &&
+ FLAGS_quic_reloadable_flag_quic_enable_version_38) {
+ filtered_versions.push_back(version);
+ }
+ } else if (version == QUIC_VERSION_39) {
if (FLAGS_quic_reloadable_flag_quic_enable_version_39 &&
FLAGS_quic_reloadable_flag_quic_enable_version_38) {
filtered_versions.push_back(version);
@@ -69,6 +75,8 @@ QuicTag QuicVersionToQuicTag(const QuicVersion version) {
return MakeQuicTag('Q', '0', '3', '8');
case QUIC_VERSION_39:
return MakeQuicTag('Q', '0', '3', '9');
+ case QUIC_VERSION_40:
+ return MakeQuicTag('Q', '0', '4', '0');
default:
// This shold be an ERROR because we should never attempt to convert an
// invalid QuicVersion to be written to the wire.
@@ -100,6 +108,7 @@ string QuicVersionToString(const QuicVersion version) {
RETURN_STRING_LITERAL(QUIC_VERSION_37);
RETURN_STRING_LITERAL(QUIC_VERSION_38);
RETURN_STRING_LITERAL(QUIC_VERSION_39);
+ RETURN_STRING_LITERAL(QUIC_VERSION_40);
default:
return "QUIC_VERSION_UNSUPPORTED";
}
« no previous file with comments | « net/quic/core/quic_versions.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698