| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 GetStartOfEncryptedData(QuicVersion version, const QuicPacketHeader& header); | 203 GetStartOfEncryptedData(QuicVersion version, const QuicPacketHeader& header); |
| 204 | 204 |
| 205 NET_EXPORT_PRIVATE size_t | 205 NET_EXPORT_PRIVATE size_t |
| 206 GetStartOfEncryptedData(QuicVersion version, | 206 GetStartOfEncryptedData(QuicVersion version, |
| 207 QuicConnectionIdLength connection_id_length, | 207 QuicConnectionIdLength connection_id_length, |
| 208 bool include_version, | 208 bool include_version, |
| 209 bool include_path_id, | 209 bool include_path_id, |
| 210 bool include_diversification_nonce, | 210 bool include_diversification_nonce, |
| 211 QuicPacketNumberLength packet_number_length); | 211 QuicPacketNumberLength packet_number_length); |
| 212 | 212 |
| 213 typedef std::array<char, 32> DiversificationNonce; | |
| 214 | |
| 215 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 213 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
| 216 QuicPacketPublicHeader(); | 214 QuicPacketPublicHeader(); |
| 217 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 215 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
| 218 ~QuicPacketPublicHeader(); | 216 ~QuicPacketPublicHeader(); |
| 219 | 217 |
| 220 // Universal header. All QuicPacket headers will have a connection_id and | 218 // Universal header. All QuicPacket headers will have a connection_id and |
| 221 // public flags. | 219 // public flags. |
| 222 QuicConnectionId connection_id; | 220 QuicConnectionId connection_id; |
| 223 QuicConnectionIdLength connection_id_length; | 221 QuicConnectionIdLength connection_id_length; |
| 224 bool multipath_flag; | 222 bool multipath_flag; |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 978 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 981 | 979 |
| 982 const struct iovec* iov; | 980 const struct iovec* iov; |
| 983 const int iov_count; | 981 const int iov_count; |
| 984 const size_t total_length; | 982 const size_t total_length; |
| 985 }; | 983 }; |
| 986 | 984 |
| 987 } // namespace net | 985 } // namespace net |
| 988 | 986 |
| 989 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 987 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |