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

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

Issue 330333006: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 <map> 10 #include <map>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 }; 151 };
152 152
153 enum IsHandshake { 153 enum IsHandshake {
154 NOT_HANDSHAKE, 154 NOT_HANDSHAKE,
155 IS_HANDSHAKE 155 IS_HANDSHAKE
156 }; 156 };
157 157
158 // Indicates FEC protection level for data being written. 158 // Indicates FEC protection level for data being written.
159 enum FecProtection { 159 enum FecProtection {
160 MUST_FEC_PROTECT, // Callee must FEC protect this data. 160 MUST_FEC_PROTECT, // Callee must FEC protect this data.
161 MAY_FEC_PROTECT // Callee does not have to but may FEC protect this data. 161 MAY_FEC_PROTECT // Callee does not have to but may FEC protect this data.
162 };
163
164 // Indicates FEC policy
165 enum FecPolicy {
166 PROTECT_ALWAYS, // All data in the stream should be FEC protected.
167 PROTECT_OPTIONAL // Data in the stream does not need FEC protection.
wtc 2014/06/16 19:35:56 I suggest adding the "FEC_" prefix to these two en
ramant (doing other things) 2014/06/16 21:13:52 Added FEC_ prefix. Done.
162 }; 168 };
163 169
164 enum QuicFrameType { 170 enum QuicFrameType {
165 // Regular frame types. The values set here cannot change without the 171 // Regular frame types. The values set here cannot change without the
166 // introduction of a new QUIC version. 172 // introduction of a new QUIC version.
167 PADDING_FRAME = 0, 173 PADDING_FRAME = 0,
168 RST_STREAM_FRAME = 1, 174 RST_STREAM_FRAME = 1,
169 CONNECTION_CLOSE_FRAME = 2, 175 CONNECTION_CLOSE_FRAME = 2,
170 GOAWAY_FRAME = 3, 176 GOAWAY_FRAME = 3,
171 WINDOW_UPDATE_FRAME = 4, 177 WINDOW_UPDATE_FRAME = 4,
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 // Stores the sequence numbers of all transmissions of this packet. 1061 // Stores the sequence numbers of all transmissions of this packet.
1056 // Can never be null. 1062 // Can never be null.
1057 SequenceNumberSet* all_transmissions; 1063 SequenceNumberSet* all_transmissions;
1058 // In flight packets have not been abandoned or lost. 1064 // In flight packets have not been abandoned or lost.
1059 bool in_flight; 1065 bool in_flight;
1060 }; 1066 };
1061 1067
1062 } // namespace net 1068 } // namespace net
1063 1069
1064 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1070 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698