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

Side by Side Diff: net/quic/core/quic_versions.h

Issue 2875333002: Landing Recent QUIC changes until Mon May 8 21:42:46 2017 +0000 (Closed)
Patch Set: Created 3 years, 7 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/core/quic_version_manager_test.cc ('k') | net/quic/core/quic_versions.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_CORE_QUIC_VERSIONS_H_ 5 #ifndef NET_QUIC_CORE_QUIC_VERSIONS_H_
6 #define NET_QUIC_CORE_QUIC_VERSIONS_H_ 6 #define NET_QUIC_CORE_QUIC_VERSIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 QUIC_VERSION_35 = 35, // Allows endpoints to independently set stream limit. 27 QUIC_VERSION_35 = 35, // Allows endpoints to independently set stream limit.
28 QUIC_VERSION_36 = 36, // Add support to force HOL blocking. 28 QUIC_VERSION_36 = 36, // Add support to force HOL blocking.
29 QUIC_VERSION_37 = 37, // Add perspective into null encryption. 29 QUIC_VERSION_37 = 37, // Add perspective into null encryption.
30 QUIC_VERSION_38 = 38, // PADDING frame is a 1-byte frame with type 0x00. 30 QUIC_VERSION_38 = 38, // PADDING frame is a 1-byte frame with type 0x00.
31 // Respect NSTP connection option. 31 // Respect NSTP connection option.
32 QUIC_VERSION_39 = 39, // Integers and floating numbers are written in big 32 QUIC_VERSION_39 = 39, // Integers and floating numbers are written in big
33 // endian. Dot not ack acks. Send a connection level 33 // endian. Dot not ack acks. Send a connection level
34 // WINDOW_UPDATE every 20 sent packets which do not 34 // WINDOW_UPDATE every 20 sent packets which do not
35 // contain retransmittable frames. 35 // contain retransmittable frames.
36 QUIC_VERSION_40 = 40, // Initial packet number is randomly chosen from
37 // [0:2^31], WINDOW_UPDATE for connection flow control
38 // advertises value in 1024-byte units, WINDOW_UPDATE
39 // splits into MAX_DATA and MAX_STREAM_DATA, BLOCKED
40 // frame split into BLOCKED and STREAM_BLOCKED frames
36 41
37 // IMPORTANT: if you are adding to this list, follow the instructions at 42 // IMPORTANT: if you are adding to this list, follow the instructions at
38 // http://sites/quic/adding-and-removing-versions 43 // http://sites/quic/adding-and-removing-versions
39 }; 44 };
40 45
41 // This vector contains QUIC versions which we currently support. 46 // This vector contains QUIC versions which we currently support.
42 // This should be ordered such that the highest supported version is the first 47 // This should be ordered such that the highest supported version is the first
43 // element, with subsequent elements in descending order (versions can be 48 // element, with subsequent elements in descending order (versions can be
44 // skipped as necessary). 49 // skipped as necessary).
45 // 50 //
46 // IMPORTANT: if you are adding to this list, follow the instructions at 51 // IMPORTANT: if you are adding to this list, follow the instructions at
47 // http://sites/quic/adding-and-removing-versions 52 // http://sites/quic/adding-and-removing-versions
48 static const QuicVersion kSupportedQuicVersions[] = { 53 static const QuicVersion kSupportedQuicVersions[] = {
49 QUIC_VERSION_39, QUIC_VERSION_38, QUIC_VERSION_37, QUIC_VERSION_36, 54 QUIC_VERSION_40, QUIC_VERSION_39, QUIC_VERSION_38,
50 QUIC_VERSION_35}; 55 QUIC_VERSION_37, QUIC_VERSION_36, QUIC_VERSION_35};
51 56
52 typedef std::vector<QuicVersion> QuicVersionVector; 57 typedef std::vector<QuicVersion> QuicVersionVector;
53 58
54 // Returns a vector of QUIC versions in kSupportedQuicVersions. 59 // Returns a vector of QUIC versions in kSupportedQuicVersions.
55 QUIC_EXPORT_PRIVATE QuicVersionVector AllSupportedVersions(); 60 QUIC_EXPORT_PRIVATE QuicVersionVector AllSupportedVersions();
56 61
57 // Returns a vector of QUIC versions from kSupportedQuicVersions which exclude 62 // Returns a vector of QUIC versions from kSupportedQuicVersions which exclude
58 // any versions which are disabled by flags. 63 // any versions which are disabled by flags.
59 QUIC_EXPORT_PRIVATE QuicVersionVector CurrentSupportedVersions(); 64 QUIC_EXPORT_PRIVATE QuicVersionVector CurrentSupportedVersions();
60 65
(...skipping 22 matching lines...) Expand all
83 QUIC_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version); 88 QUIC_EXPORT_PRIVATE std::string QuicVersionToString(const QuicVersion version);
84 89
85 // Returns comma separated list of string representations of QuicVersion enum 90 // Returns comma separated list of string representations of QuicVersion enum
86 // values in the supplied |versions| vector. 91 // values in the supplied |versions| vector.
87 QUIC_EXPORT_PRIVATE std::string QuicVersionVectorToString( 92 QUIC_EXPORT_PRIVATE std::string QuicVersionVectorToString(
88 const QuicVersionVector& versions); 93 const QuicVersionVector& versions);
89 94
90 } // namespace net 95 } // namespace net
91 96
92 #endif // NET_QUIC_CORE_QUIC_VERSIONS_H_ 97 #endif // NET_QUIC_CORE_QUIC_VERSIONS_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_version_manager_test.cc ('k') | net/quic/core/quic_versions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698