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

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

Issue 2808273006: Landing Recent QUIC changes until Sun Apr 9 16:12:55 (Closed)
Patch Set: increment enabled_options in e2e test Created 3 years, 8 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/quic/test_tools/quic_test_utils.h » ('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 a26aa2dddbd911b55b2906b6f4984b36085aa7a9..6873776c5c2a1e00f8422468c1e9989842d0bf60 100644
--- a/net/quic/core/quic_versions.cc
+++ b/net/quic/core/quic_versions.cc
@@ -30,8 +30,15 @@ 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_38) {
- if (FLAGS_quic_enable_version_38 &&
+ if (version == QUIC_VERSION_39) {
+ if (base::GetFlag(FLAGS_quic_enable_version_39) &&
+ FLAGS_quic_reloadable_flag_quic_enable_version_38 &&
+ FLAGS_quic_reloadable_flag_quic_enable_version_37 &&
+ FLAGS_quic_reloadable_flag_quic_enable_version_36_v3) {
+ filtered_versions.push_back(version);
+ }
+ } else if (version == QUIC_VERSION_38) {
+ if (FLAGS_quic_reloadable_flag_quic_enable_version_38 &&
FLAGS_quic_reloadable_flag_quic_enable_version_37 &&
FLAGS_quic_reloadable_flag_quic_enable_version_36_v3) {
filtered_versions.push_back(version);
@@ -79,6 +86,8 @@ QuicTag QuicVersionToQuicTag(const QuicVersion version) {
return MakeQuicTag('Q', '0', '3', '7');
case QUIC_VERSION_38:
return MakeQuicTag('Q', '0', '3', '8');
+ case QUIC_VERSION_39:
+ return MakeQuicTag('Q', '0', '3', '9');
default:
// This shold be an ERROR because we should never attempt to convert an
// invalid QuicVersion to be written to the wire.
@@ -110,6 +119,7 @@ string QuicVersionToString(const QuicVersion version) {
RETURN_STRING_LITERAL(QUIC_VERSION_36);
RETURN_STRING_LITERAL(QUIC_VERSION_37);
RETURN_STRING_LITERAL(QUIC_VERSION_38);
+ RETURN_STRING_LITERAL(QUIC_VERSION_39);
default:
return "QUIC_VERSION_UNSUPPORTED";
}
« no previous file with comments | « net/quic/core/quic_versions.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698