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 #include <limits> | 10 #include <limits> |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 | 36 |
37 class QuicPacket; | 37 class QuicPacket; |
38 struct QuicPacketHeader; | 38 struct QuicPacketHeader; |
39 | 39 |
40 typedef uint64 QuicConnectionId; | 40 typedef uint64 QuicConnectionId; |
41 typedef uint32 QuicStreamId; | 41 typedef uint32 QuicStreamId; |
42 typedef uint64 QuicStreamOffset; | 42 typedef uint64 QuicStreamOffset; |
43 typedef uint64 QuicPacketNumber; | 43 typedef uint64 QuicPacketNumber; |
| 44 typedef uint8 QuicPathId; |
44 typedef QuicPacketNumber QuicFecGroupNumber; | 45 typedef QuicPacketNumber QuicFecGroupNumber; |
45 typedef uint64 QuicPublicResetNonceProof; | 46 typedef uint64 QuicPublicResetNonceProof; |
46 typedef uint8 QuicPacketEntropyHash; | 47 typedef uint8 QuicPacketEntropyHash; |
47 typedef uint32 QuicHeaderId; | 48 typedef uint32 QuicHeaderId; |
48 // QuicTag is the type of a tag in the wire protocol. | 49 // QuicTag is the type of a tag in the wire protocol. |
49 typedef uint32 QuicTag; | 50 typedef uint32 QuicTag; |
50 typedef std::vector<QuicTag> QuicTagVector; | 51 typedef std::vector<QuicTag> QuicTagVector; |
51 typedef std::map<QuicTag, std::string> QuicTagValueMap; | 52 typedef std::map<QuicTag, std::string> QuicTagValueMap; |
52 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and | 53 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and |
53 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION. | 54 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION. |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1239 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1239 | 1240 |
1240 const struct iovec* iov; | 1241 const struct iovec* iov; |
1241 const int iov_count; | 1242 const int iov_count; |
1242 const size_t total_length; | 1243 const size_t total_length; |
1243 }; | 1244 }; |
1244 | 1245 |
1245 } // namespace net | 1246 } // namespace net |
1246 | 1247 |
1247 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1248 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |