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

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

Issue 530343003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0828
Patch Set: Created 6 years, 3 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_headers_stream_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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // kSupportedQuicVersions (if appropriate), and also add a new case to the 282 // kSupportedQuicVersions (if appropriate), and also add a new case to the
283 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and 283 // helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and
284 // QuicVersionToString. 284 // QuicVersionToString.
285 enum QuicVersion { 285 enum QuicVersion {
286 // Special case to indicate unknown/unsupported QUIC version. 286 // Special case to indicate unknown/unsupported QUIC version.
287 QUIC_VERSION_UNSUPPORTED = 0, 287 QUIC_VERSION_UNSUPPORTED = 0,
288 288
289 QUIC_VERSION_16 = 16, // STOP_WAITING frame. 289 QUIC_VERSION_16 = 16, // STOP_WAITING frame.
290 QUIC_VERSION_18 = 18, // PING frame. 290 QUIC_VERSION_18 = 18, // PING frame.
291 QUIC_VERSION_19 = 19, // Connection level flow control. 291 QUIC_VERSION_19 = 19, // Connection level flow control.
292 QUIC_VERSION_20 = 20, // Independent stream/connection flow control windows.
293 QUIC_VERSION_21 = 21, // Headers/crypto streams are flow controlled. 292 QUIC_VERSION_21 = 21, // Headers/crypto streams are flow controlled.
294 QUIC_VERSION_22 = 22, // Send Server Config Update messages on crypto stream. 293 QUIC_VERSION_22 = 22, // Send Server Config Update messages on crypto stream.
295 QUIC_VERSION_23 = 23, // Timestamp in the ack frame. 294 QUIC_VERSION_23 = 23, // Timestamp in the ack frame.
296 }; 295 };
297 296
298 // This vector contains QUIC versions which we currently support. 297 // This vector contains QUIC versions which we currently support.
299 // This should be ordered such that the highest supported version is the first 298 // This should be ordered such that the highest supported version is the first
300 // element, with subsequent elements in descending order (versions can be 299 // element, with subsequent elements in descending order (versions can be
301 // skipped as necessary). 300 // skipped as necessary).
302 // 301 //
303 // IMPORTANT: if you are adding to this list, follow the instructions at 302 // IMPORTANT: if you are adding to this list, follow the instructions at
304 // http://sites/quic/adding-and-removing-versions 303 // http://sites/quic/adding-and-removing-versions
305 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23, 304 static const QuicVersion kSupportedQuicVersions[] = {QUIC_VERSION_23,
306 QUIC_VERSION_22, 305 QUIC_VERSION_22,
307 QUIC_VERSION_21, 306 QUIC_VERSION_21,
308 QUIC_VERSION_20,
309 QUIC_VERSION_19, 307 QUIC_VERSION_19,
310 QUIC_VERSION_18, 308 QUIC_VERSION_18,
311 QUIC_VERSION_16}; 309 QUIC_VERSION_16};
312 310
313 typedef std::vector<QuicVersion> QuicVersionVector; 311 typedef std::vector<QuicVersion> QuicVersionVector;
314 312
315 // Returns a vector of QUIC versions in kSupportedQuicVersions. 313 // Returns a vector of QUIC versions in kSupportedQuicVersions.
316 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions(); 314 NET_EXPORT_PRIVATE QuicVersionVector QuicSupportedVersions();
317 315
318 // QuicTag is written to and read from the wire, but we prefer to use 316 // QuicTag is written to and read from the wire, but we prefer to use
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 // Stores the sequence numbers of all transmissions of this packet. 1073 // Stores the sequence numbers of all transmissions of this packet.
1076 // Can never be null. 1074 // Can never be null.
1077 SequenceNumberList* all_transmissions; 1075 SequenceNumberList* all_transmissions;
1078 // In flight packets have not been abandoned or lost. 1076 // In flight packets have not been abandoned or lost.
1079 bool in_flight; 1077 bool in_flight;
1080 }; 1078 };
1081 1079
1082 } // namespace net 1080 } // namespace net
1083 1081
1084 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1082 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698