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 <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Number of bytes reserved for private flags in the packet header. | 118 // Number of bytes reserved for private flags in the packet header. |
119 const size_t kPrivateFlagsSize = 1; | 119 const size_t kPrivateFlagsSize = 1; |
120 // Number of bytes reserved for FEC group in the packet header. | 120 // Number of bytes reserved for FEC group in the packet header. |
121 const size_t kFecGroupSize = 1; | 121 const size_t kFecGroupSize = 1; |
122 | 122 |
123 // Signifies that the QuicPacket will contain version of the protocol. | 123 // Signifies that the QuicPacket will contain version of the protocol. |
124 const bool kIncludeVersion = true; | 124 const bool kIncludeVersion = true; |
125 // Signifies that the QuicPacket will contain path id. | 125 // Signifies that the QuicPacket will contain path id. |
126 const bool kIncludePathId = true; | 126 const bool kIncludePathId = true; |
127 | 127 |
| 128 // Stream ID is reserved to denote an invalid ID. |
| 129 const QuicStreamId kInvalidStreamId = 0; |
| 130 |
128 // Reserved ID for the crypto stream. | 131 // Reserved ID for the crypto stream. |
129 const QuicStreamId kCryptoStreamId = 1; | 132 const QuicStreamId kCryptoStreamId = 1; |
130 | 133 |
131 // Reserved ID for the headers stream. | 134 // Reserved ID for the headers stream. |
132 const QuicStreamId kHeadersStreamId = 3; | 135 const QuicStreamId kHeadersStreamId = 3; |
133 | 136 |
134 // Header key used to identify final offset on data stream when sending HTTP/2 | 137 // Header key used to identify final offset on data stream when sending HTTP/2 |
135 // trailing headers over QUIC. | 138 // trailing headers over QUIC. |
136 NET_EXPORT_PRIVATE extern const char* const kFinalOffsetHeaderKey; | 139 NET_EXPORT_PRIVATE extern const char* const kFinalOffsetHeaderKey; |
137 | 140 |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1317 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1315 | 1318 |
1316 const struct iovec* iov; | 1319 const struct iovec* iov; |
1317 const int iov_count; | 1320 const int iov_count; |
1318 const size_t total_length; | 1321 const size_t total_length; |
1319 }; | 1322 }; |
1320 | 1323 |
1321 } // namespace net | 1324 } // namespace net |
1322 | 1325 |
1323 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1326 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |