| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 enum HasRetransmittableData { | 148 enum HasRetransmittableData { |
| 149 NO_RETRANSMITTABLE_DATA, | 149 NO_RETRANSMITTABLE_DATA, |
| 150 HAS_RETRANSMITTABLE_DATA, | 150 HAS_RETRANSMITTABLE_DATA, |
| 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. |
| 159 enum FecProtection { |
| 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. |
| 162 }; |
| 163 |
| 158 enum QuicFrameType { | 164 enum QuicFrameType { |
| 159 // Regular frame types. The values set here cannot change without the | 165 // Regular frame types. The values set here cannot change without the |
| 160 // introduction of a new QUIC version. | 166 // introduction of a new QUIC version. |
| 161 PADDING_FRAME = 0, | 167 PADDING_FRAME = 0, |
| 162 RST_STREAM_FRAME = 1, | 168 RST_STREAM_FRAME = 1, |
| 163 CONNECTION_CLOSE_FRAME = 2, | 169 CONNECTION_CLOSE_FRAME = 2, |
| 164 GOAWAY_FRAME = 3, | 170 GOAWAY_FRAME = 3, |
| 165 WINDOW_UPDATE_FRAME = 4, | 171 WINDOW_UPDATE_FRAME = 4, |
| 166 BLOCKED_FRAME = 5, | 172 BLOCKED_FRAME = 5, |
| 167 STOP_WAITING_FRAME = 6, | 173 STOP_WAITING_FRAME = 6, |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 // Stores the sequence numbers of all transmissions of this packet. | 1055 // Stores the sequence numbers of all transmissions of this packet. |
| 1050 // Can never be null. | 1056 // Can never be null. |
| 1051 SequenceNumberSet* all_transmissions; | 1057 SequenceNumberSet* all_transmissions; |
| 1052 // In flight packets have not been abandoned or lost. | 1058 // In flight packets have not been abandoned or lost. |
| 1053 bool in_flight; | 1059 bool in_flight; |
| 1054 }; | 1060 }; |
| 1055 | 1061 |
| 1056 } // namespace net | 1062 } // namespace net |
| 1057 | 1063 |
| 1058 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1064 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |