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

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

Issue 1666553002: Make QUIC's SerializedPacket contain QuicFrames, rather than a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113205205
Patch Set: Created 4 years, 10 months 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/quic_packet_generator_test.cc ('k') | net/quic/quic_protocol.cc » ('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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 scoped_refptr<QuicAckListenerInterface> ack_listener; 1288 scoped_refptr<QuicAckListenerInterface> ack_listener;
1289 QuicPacketLength length; 1289 QuicPacketLength length;
1290 }; 1290 };
1291 1291
1292 struct NET_EXPORT_PRIVATE SerializedPacket { 1292 struct NET_EXPORT_PRIVATE SerializedPacket {
1293 SerializedPacket(QuicPathId path_id, 1293 SerializedPacket(QuicPathId path_id,
1294 QuicPacketNumber packet_number, 1294 QuicPacketNumber packet_number,
1295 QuicPacketNumberLength packet_number_length, 1295 QuicPacketNumberLength packet_number_length,
1296 QuicEncryptedPacket* packet, 1296 QuicEncryptedPacket* packet,
1297 QuicPacketEntropyHash entropy_hash, 1297 QuicPacketEntropyHash entropy_hash,
1298 QuicFrames* retransmittable_frames,
1299 bool has_ack, 1298 bool has_ack,
1300 bool has_stop_waiting); 1299 bool has_stop_waiting);
1301 ~SerializedPacket(); 1300 ~SerializedPacket();
1302 1301
1303 QuicEncryptedPacket* packet; 1302 QuicEncryptedPacket* packet;
1304 QuicFrames* retransmittable_frames; 1303 QuicFrames retransmittable_frames;
1305 IsHandshake has_crypto_handshake; 1304 IsHandshake has_crypto_handshake;
1306 bool needs_padding; 1305 bool needs_padding;
1307 QuicPathId path_id; 1306 QuicPathId path_id;
1308 QuicPacketNumber packet_number; 1307 QuicPacketNumber packet_number;
1309 QuicPacketNumberLength packet_number_length; 1308 QuicPacketNumberLength packet_number_length;
1310 EncryptionLevel encryption_level; 1309 EncryptionLevel encryption_level;
1311 QuicPacketEntropyHash entropy_hash; 1310 QuicPacketEntropyHash entropy_hash;
1312 bool is_fec_packet; 1311 bool is_fec_packet;
1313 bool has_ack; 1312 bool has_ack;
1314 bool has_stop_waiting; 1313 bool has_stop_waiting;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1398 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1400 1399
1401 const struct iovec* iov; 1400 const struct iovec* iov;
1402 const int iov_count; 1401 const int iov_count;
1403 const size_t total_length; 1402 const size_t total_length;
1404 }; 1403 };
1405 1404
1406 } // namespace net 1405 } // namespace net
1407 1406
1408 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1407 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698