Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: net/quic/core/quic_protocol.h

Issue 2512063003: Move QuicIoVector into its own header file. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698