| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 QuicPacketNumber packet_number; | 757 QuicPacketNumber packet_number; |
| 758 const QuicFrames& retransmittable_frames; | 758 const QuicFrames& retransmittable_frames; |
| 759 TransmissionType transmission_type; | 759 TransmissionType transmission_type; |
| 760 QuicPathId path_id; | 760 QuicPathId path_id; |
| 761 bool has_crypto_handshake; | 761 bool has_crypto_handshake; |
| 762 int num_padding_bytes; | 762 int num_padding_bytes; |
| 763 EncryptionLevel encryption_level; | 763 EncryptionLevel encryption_level; |
| 764 QuicPacketNumberLength packet_number_length; | 764 QuicPacketNumberLength packet_number_length; |
| 765 }; | 765 }; |
| 766 | 766 |
| 767 // Convenience wrapper to wrap an iovec array and the total length, which must | |
| 768 // be less than or equal to the actual total length of the iovecs. | |
| 769 struct NET_EXPORT_PRIVATE QuicIOVector { | |
| 770 QuicIOVector(const struct iovec* iov, int iov_count, size_t total_length) | |
| 771 : iov(iov), iov_count(iov_count), total_length(total_length) {} | |
| 772 | |
| 773 const struct iovec* iov; | |
| 774 const int iov_count; | |
| 775 const size_t total_length; | |
| 776 }; | |
| 777 | |
| 778 } // namespace net | 767 } // namespace net |
| 779 | 768 |
| 780 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 769 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |