OLD | NEW |
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 }; | 162 }; |
163 | 163 |
164 // Indicates FEC policy | 164 // Indicates FEC policy. |
165 enum FecPolicy { | 165 enum FecPolicy { |
166 FEC_PROTECT_ALWAYS, // All data in the stream should be FEC protected. | 166 FEC_PROTECT_ALWAYS, // All data in the stream should be FEC protected. |
167 FEC_PROTECT_OPTIONAL // Data in the stream does not need FEC protection. | 167 FEC_PROTECT_OPTIONAL // Data in the stream does not need FEC protection. |
168 }; | 168 }; |
169 | 169 |
170 enum QuicFrameType { | 170 enum QuicFrameType { |
171 // Regular frame types. The values set here cannot change without the | 171 // Regular frame types. The values set here cannot change without the |
172 // introduction of a new QUIC version. | 172 // introduction of a new QUIC version. |
173 PADDING_FRAME = 0, | 173 PADDING_FRAME = 0, |
174 RST_STREAM_FRAME = 1, | 174 RST_STREAM_FRAME = 1, |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 // Stores the sequence numbers of all transmissions of this packet. | 1061 // Stores the sequence numbers of all transmissions of this packet. |
1062 // Can never be null. | 1062 // Can never be null. |
1063 SequenceNumberSet* all_transmissions; | 1063 SequenceNumberSet* all_transmissions; |
1064 // In flight packets have not been abandoned or lost. | 1064 // In flight packets have not been abandoned or lost. |
1065 bool in_flight; | 1065 bool in_flight; |
1066 }; | 1066 }; |
1067 | 1067 |
1068 } // namespace net | 1068 } // namespace net |
1069 | 1069 |
1070 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1070 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |