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_CORE_QUIC_PACKETS_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_PACKETS_H_ |
6 #define NET_QUIC_CORE_QUIC_PACKETS_H_ | 6 #define NET_QUIC_CORE_QUIC_PACKETS_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <limits> | 9 #include <limits> |
10 #include <list> | 10 #include <list> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 struct QUIC_EXPORT_PRIVATE QuicPacketPublicHeader { | 58 struct QUIC_EXPORT_PRIVATE QuicPacketPublicHeader { |
59 QuicPacketPublicHeader(); | 59 QuicPacketPublicHeader(); |
60 QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 60 QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
61 ~QuicPacketPublicHeader(); | 61 ~QuicPacketPublicHeader(); |
62 | 62 |
63 // Universal header. All QuicPacket headers will have a connection_id and | 63 // Universal header. All QuicPacket headers will have a connection_id and |
64 // public flags. | 64 // public flags. |
65 QuicConnectionId connection_id; | 65 QuicConnectionId connection_id; |
66 QuicConnectionIdLength connection_id_length; | 66 QuicConnectionIdLength connection_id_length; |
| 67 // TODO(fayang): Remove multipath_flag when deprecating |
| 68 // gfe2_reloadable_flag_quic_remove_multipath_bit. |
67 bool multipath_flag; | 69 bool multipath_flag; |
68 bool reset_flag; | 70 bool reset_flag; |
69 bool version_flag; | 71 bool version_flag; |
70 QuicPacketNumberLength packet_number_length; | 72 QuicPacketNumberLength packet_number_length; |
71 QuicVersionVector versions; | 73 QuicVersionVector versions; |
72 // nonce contains an optional, 32-byte nonce value. If not included in the | 74 // nonce contains an optional, 32-byte nonce value. If not included in the |
73 // packet, |nonce| will be empty. | 75 // packet, |nonce| will be empty. |
74 DiversificationNonce* nonce; | 76 DiversificationNonce* nonce; |
75 }; | 77 }; |
76 | 78 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 QUIC_EXPORT_PRIVATE void ClearSerializedPacket( | 250 QUIC_EXPORT_PRIVATE void ClearSerializedPacket( |
249 SerializedPacket* serialized_packet); | 251 SerializedPacket* serialized_packet); |
250 | 252 |
251 // Allocates a new char[] of size |packet.encrypted_length| and copies in | 253 // Allocates a new char[] of size |packet.encrypted_length| and copies in |
252 // |packet.encrypted_buffer|. | 254 // |packet.encrypted_buffer|. |
253 QUIC_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); | 255 QUIC_EXPORT_PRIVATE char* CopyBuffer(const SerializedPacket& packet); |
254 | 256 |
255 } // namespace net | 257 } // namespace net |
256 | 258 |
257 #endif // NET_QUIC_CORE_QUIC_PACKETS_H_ | 259 #endif // NET_QUIC_CORE_QUIC_PACKETS_H_ |
OLD | NEW |