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

Unified Diff: net/quic/quic_protocol.cc

Issue 22311013: Removing QUIC's VERSION_6, now that QUIC no longer needs to support the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync with trunk Created 7 years, 4 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/test_tools/quic_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
===================================================================
--- net/quic/quic_protocol.cc (revision 217052)
+++ net/quic/quic_protocol.cc (working copy)
@@ -123,10 +123,12 @@
QuicVersion QuicVersionMax() { return kSupportedQuicVersions[0]; }
+QuicVersion QuicVersionMin() {
+ return kSupportedQuicVersions[arraysize(kSupportedQuicVersions) - 1];
+}
+
QuicTag QuicVersionToQuicTag(const QuicVersion version) {
switch (version) {
- case QUIC_VERSION_6:
- return MakeQuicTag('Q', '0', '0', '6');
case QUIC_VERSION_7:
return MakeQuicTag('Q', '0', '0', '7');
case QUIC_VERSION_8:
@@ -140,13 +142,10 @@
}
QuicVersion QuicTagToQuicVersion(const QuicTag version_tag) {
- const QuicTag quic_tag_v6 = MakeQuicTag('Q', '0', '0', '6');
const QuicTag quic_tag_v7 = MakeQuicTag('Q', '0', '0', '7');
const QuicTag quic_tag_v8 = MakeQuicTag('Q', '0', '0', '8');
- if (version_tag == quic_tag_v6) {
- return QUIC_VERSION_6;
- } else if (version_tag == quic_tag_v7) {
+ if (version_tag == quic_tag_v7) {
return QUIC_VERSION_7;
} else if (version_tag == quic_tag_v8) {
return QUIC_VERSION_8;
@@ -164,7 +163,6 @@
string QuicVersionToString(const QuicVersion version) {
switch (version) {
- RETURN_STRING_LITERAL(QUIC_VERSION_6);
RETURN_STRING_LITERAL(QUIC_VERSION_7);
RETURN_STRING_LITERAL(QUIC_VERSION_8);
default:
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698