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

Unified Diff: net/quic/quic_protocol.cc

Issue 968493002: Cleanup of QUIC's TransmissionInfo constructor to make more fields const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Fixing_bug_QUIC_prober_86703503
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
index 5f83af77931f56fdbfd24b053d89e24e8c0475df..6cd3ae955a2077d70c3c9f8258e70300f2cd6764 100644
--- a/net/quic/quic_protocol.cc
+++ b/net/quic/quic_protocol.cc
@@ -652,22 +652,26 @@ TransmissionInfo::TransmissionInfo()
all_transmissions(nullptr),
in_flight(false),
is_unackable(false),
- is_fec_packet(false) {}
+ is_fec_packet(false) {
+}
TransmissionInfo::TransmissionInfo(
RetransmittableFrames* retransmittable_frames,
QuicSequenceNumberLength sequence_number_length,
TransmissionType transmission_type,
- QuicTime sent_time)
+ QuicTime sent_time,
+ QuicByteCount bytes_sent,
+ bool is_fec_packet)
: retransmittable_frames(retransmittable_frames),
sequence_number_length(sequence_number_length),
sent_time(sent_time),
- bytes_sent(0),
+ bytes_sent(bytes_sent),
nack_count(0),
transmission_type(transmission_type),
all_transmissions(nullptr),
in_flight(false),
is_unackable(false),
- is_fec_packet(false) {}
+ is_fec_packet(is_fec_packet) {
+}
} // namespace net
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698