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 <list> | 10 #include <list> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const size_t kFecGroupSize = 1; | 102 const size_t kFecGroupSize = 1; |
103 | 103 |
104 // Signifies that the QuicPacket will contain version of the protocol. | 104 // Signifies that the QuicPacket will contain version of the protocol. |
105 const bool kIncludeVersion = true; | 105 const bool kIncludeVersion = true; |
106 | 106 |
107 // Index of the first byte in a QUIC packet which is used in hash calculation. | 107 // Index of the first byte in a QUIC packet which is used in hash calculation. |
108 const size_t kStartOfHashData = 0; | 108 const size_t kStartOfHashData = 0; |
109 | 109 |
110 // Limit on the delta between stream IDs. | 110 // Limit on the delta between stream IDs. |
111 const QuicStreamId kMaxStreamIdDelta = 200; | 111 const QuicStreamId kMaxStreamIdDelta = 200; |
112 // Limit on the delta between header IDs. | |
113 const QuicHeaderId kMaxHeaderIdDelta = 200; | |
114 | 112 |
115 // Reserved ID for the crypto stream. | 113 // Reserved ID for the crypto stream. |
116 const QuicStreamId kCryptoStreamId = 1; | 114 const QuicStreamId kCryptoStreamId = 1; |
117 | 115 |
118 // Reserved ID for the headers stream. | 116 // Reserved ID for the headers stream. |
119 const QuicStreamId kHeadersStreamId = 3; | 117 const QuicStreamId kHeadersStreamId = 3; |
120 | 118 |
121 // Maximum delayed ack time, in ms. | 119 // Maximum delayed ack time, in ms. |
122 const int64 kMaxDelayedAckTimeMs = 25; | 120 const int64 kMaxDelayedAckTimeMs = 25; |
123 | 121 |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 bool in_flight; | 1036 bool in_flight; |
1039 // True if the packet can never be acked, so it can be removed. | 1037 // True if the packet can never be acked, so it can be removed. |
1040 bool is_unackable; | 1038 bool is_unackable; |
1041 // True if the packet is an FEC packet. | 1039 // True if the packet is an FEC packet. |
1042 bool is_fec_packet; | 1040 bool is_fec_packet; |
1043 }; | 1041 }; |
1044 | 1042 |
1045 } // namespace net | 1043 } // namespace net |
1046 | 1044 |
1047 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1045 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |