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

Unified Diff: net/quic/quic_protocol.cc

Issue 2100863003: Disable QUIC v29 and earlier. Protected by FLAGS_quic_disable_pre_30. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Fixing compile error on android. Created 4 years, 6 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/quic_protocol.h ('k') | net/quic/quic_protocol_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
index a784a2bcde80b7c8b7b492d2022526b713c7c4d3..e53db9cc00d7018e3b7cfdb50609ae976f91a2b3 100644
--- a/net/quic/quic_protocol.cc
+++ b/net/quic/quic_protocol.cc
@@ -179,6 +179,17 @@ QuicVersionVector QuicSupportedVersions() {
return supported_versions;
}
+QuicVersionVector FilterSupportedVersions(QuicVersionVector versions) {
+ QuicVersionVector filtered_versions(versions.size());
+ filtered_versions.clear(); // Guaranteed by spec not to change capacity.
+ for (QuicVersion version : versions) {
+ if (!FLAGS_quic_disable_pre_30 || version >= QUIC_VERSION_30) {
+ filtered_versions.push_back(version);
+ }
+ }
+ return filtered_versions;
+}
+
QuicTag QuicVersionToQuicTag(const QuicVersion version) {
switch (version) {
case QUIC_VERSION_25:
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_protocol_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698