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

Side by Side Diff: net/quic/quic_protocol.h

Issue 682383003: Remove QUIC_VERSION_21 from supported versions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Turning_off_CID_truncation_78599095
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <limits> 9 #include <limits>
10 #include <list> 10 #include <list>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 // This vector contains QUIC versions which we currently support. 307 // This vector contains QUIC versions which we currently support.
308 // This should be ordered such that the highest supported version is the first 308 // This should be ordered such that the highest supported version is the first
309 // element, with subsequent elements in descending order (versions can be 309 // element, with subsequent elements in descending order (versions can be
310 // skipped as necessary). 310 // skipped as necessary).
311 // 311 //
312 // IMPORTANT: if you are adding to this list, follow the instructions at 312 // IMPORTANT: if you are adding to this list, follow the instructions at
313 // http://sites/quic/adding-and-removing-versions 313 // http://sites/quic/adding-and-removing-versions
314 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23, 314 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23,
315 QUIC_VERSION_22, 315 QUIC_VERSION_22,
316 QUIC_VERSION_21,
317 QUIC_VERSION_19}; 316 QUIC_VERSION_19};
318 317
319 typedef std::vector<QuicVersion> QuicVersionVector; 318 typedef std::vector<QuicVersion> QuicVersionVector;
320 319
321 // Returns a vector of QUIC versions in kSupportedQuicVersions. 320 // Returns a vector of QUIC versions in kSupportedQuicVersions.
322 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); 321 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions();
323 322
324 // QuicTag is written to and read from the wire, but we prefer to use 323 // QuicTag is written to and read from the wire, but we prefer to use
325 // the more readable QuicVersion at other levels. 324 // the more readable QuicVersion at other levels.
326 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0 325 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 SequenceNumberList* all_transmissions; 1080 SequenceNumberList* all_transmissions;
1082 // In flight packets have not been abandoned or lost. 1081 // In flight packets have not been abandoned or lost.
1083 bool in_flight; 1082 bool in_flight;
1084 // True if the packet can never be acked, so it can be removed. 1083 // True if the packet can never be acked, so it can be removed.
1085 bool is_unackable; 1084 bool is_unackable;
1086 }; 1085 };
1087 1086
1088 } // namespace net 1087 } // namespace net
1089 1088
1090 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1089 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698