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

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

Issue 601663004: Remove support for QUIC_VERSION_16. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@QUIC_server_max_streams_76269911
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // The available versions of QUIC. Guaranteed that the integer value of the enum 285 // The available versions of QUIC. Guaranteed that the integer value of the enum
286 // will match the version number. 286 // will match the version number.
287 // When adding a new version to this enum you should add it to 287 // When adding a new version to this enum you should add it to
288 // kSupportedQuicVersions (if appropriate), and also add a new case to the 288 // kSupportedQuicVersions (if appropriate), and also add a new case to the
289 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and 289 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and
290 // QuicVersionToString. 290 // QuicVersionToString.
291 enum QuicVersion { 291 enum QuicVersion {
292 // Special case to indicate unknown/unsupported QUIC version. 292 // Special case to indicate unknown/unsupported QUIC version.
293 QUIC_VERSION_UNSUPPORTED = 0, 293 QUIC_VERSION_UNSUPPORTED = 0,
294 294
295 QUIC_VERSION_16 = 16, // STOP_WAITING frame.
296 QUIC_VERSION_18 = 18, // PING frame. 295 QUIC_VERSION_18 = 18, // PING frame.
297 QUIC_VERSION_19 = 19, // Connection level flow control. 296 QUIC_VERSION_19 = 19, // Connection level flow control.
298 QUIC_VERSION_21 = 21, // Headers/crypto streams are flow controlled. 297 QUIC_VERSION_21 = 21, // Headers/crypto streams are flow controlled.
299 QUIC_VERSION_22 = 22, // Send Server Config Update messages on crypto stream. 298 QUIC_VERSION_22 = 22, // Send Server Config Update messages on crypto stream.
300 QUIC_VERSION_23 = 23, // Timestamp in the ack frame. 299 QUIC_VERSION_23 = 23, // Timestamp in the ack frame.
301 }; 300 };
302 301
303 // This vector contains QUIC versions which we currently support. 302 // This vector contains QUIC versions which we currently support.
304 // This should be ordered such that the highest supported version is the first 303 // This should be ordered such that the highest supported version is the first
305 // element, with subsequent elements in descending order (versions can be 304 // element, with subsequent elements in descending order (versions can be
306 // skipped as necessary). 305 // skipped as necessary).
307 // 306 //
308 // IMPORTANT: if you are adding to this list, follow the instructions at 307 // IMPORTANT: if you are adding to this list, follow the instructions at
309 // http://sites/quic/adding-and-removing-versions 308 // http://sites/quic/adding-and-removing-versions
310 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23, 309 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23,
311 QUIC_VERSION_22, 310 QUIC_VERSION_22,
312 QUIC_VERSION_21, 311 QUIC_VERSION_21,
313 QUIC_VERSION_19, 312 QUIC_VERSION_19,
314 QUIC_VERSION_18, 313 QUIC_VERSION_18};
315 QUIC_VERSION_16};
316 314
317 typedef std::vector<QuicVersion> QuicVersionVector; 315 typedef std::vector<QuicVersion> QuicVersionVector;
318 316
319 // Returns a vector of QUIC versions in kSupportedQuicVersions. 317 // Returns a vector of QUIC versions in kSupportedQuicVersions.
320 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); 318 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions();
321 319
322 // QuicTag is written to and read from the wire, but we prefer to use 320 // QuicTag is written to and read from the wire, but we prefer to use
323 // the more readable QuicVersion at other levels. 321 // the more readable QuicVersion at other levels.
324 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0 322 // Helper function which translates from a QuicVersion to a QuicTag. Returns 0
325 // if QuicVersion is unsupported. 323 // if QuicVersion is unsupported.
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 SequenceNumberList* all_transmissions; 1082 SequenceNumberList* all_transmissions;
1085 // In flight packets have not been abandoned or lost. 1083 // In flight packets have not been abandoned or lost.
1086 bool in_flight; 1084 bool in_flight;
1087 // True if the packet can never be acked, so it can be removed. 1085 // True if the packet can never be acked, so it can be removed.
1088 bool is_unackable; 1086 bool is_unackable;
1089 }; 1087 };
1090 1088
1091 } // namespace net 1089 } // namespace net
1092 1090
1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1091 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698