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

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

Issue 1401053005: relnote: Reduce the size of QUIC's TransmissionInfo struct based on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_test_cases_to_catch_failure_104130818
Patch Set: Created 5 years, 2 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_protocol.h ('k') | net/quic/quic_unacked_packet_map.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 #include "net/quic/quic_protocol.h" 5 #include "net/quic/quic_protocol.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/quic_flags.h" 8 #include "net/quic/quic_flags.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/quic_utils.h"
10 10
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 } 889 }
890 890
891 ostream& operator<<(ostream& os, const QuicEncryptedPacket& s) { 891 ostream& operator<<(ostream& os, const QuicEncryptedPacket& s) {
892 os << s.length() << "-byte data"; 892 os << s.length() << "-byte data";
893 return os; 893 return os;
894 } 894 }
895 895
896 TransmissionInfo::TransmissionInfo() 896 TransmissionInfo::TransmissionInfo()
897 : retransmittable_frames(nullptr), 897 : retransmittable_frames(nullptr),
898 packet_number_length(PACKET_1BYTE_PACKET_NUMBER), 898 packet_number_length(PACKET_1BYTE_PACKET_NUMBER),
899 sent_time(QuicTime::Zero()),
900 bytes_sent(0), 899 bytes_sent(0),
901 nack_count(0), 900 nack_count(0),
901 sent_time(QuicTime::Zero()),
902 transmission_type(NOT_RETRANSMISSION), 902 transmission_type(NOT_RETRANSMISSION),
903 all_transmissions(nullptr),
904 in_flight(false), 903 in_flight(false),
905 is_unackable(false), 904 is_unackable(false),
906 is_fec_packet(false) {} 905 is_fec_packet(false),
906 all_transmissions(nullptr) {}
907 907
908 TransmissionInfo::TransmissionInfo( 908 TransmissionInfo::TransmissionInfo(
909 RetransmittableFrames* retransmittable_frames, 909 RetransmittableFrames* retransmittable_frames,
910 QuicPacketNumberLength packet_number_length, 910 QuicPacketNumberLength packet_number_length,
911 TransmissionType transmission_type, 911 TransmissionType transmission_type,
912 QuicTime sent_time, 912 QuicTime sent_time,
913 QuicByteCount bytes_sent, 913 QuicPacketLength bytes_sent,
914 bool is_fec_packet) 914 bool is_fec_packet)
915 : retransmittable_frames(retransmittable_frames), 915 : retransmittable_frames(retransmittable_frames),
916 packet_number_length(packet_number_length), 916 packet_number_length(packet_number_length),
917 sent_time(sent_time),
918 bytes_sent(bytes_sent), 917 bytes_sent(bytes_sent),
919 nack_count(0), 918 nack_count(0),
919 sent_time(sent_time),
920 transmission_type(transmission_type), 920 transmission_type(transmission_type),
921 all_transmissions(nullptr),
922 in_flight(false), 921 in_flight(false),
923 is_unackable(false), 922 is_unackable(false),
924 is_fec_packet(is_fec_packet) {} 923 is_fec_packet(is_fec_packet),
924 all_transmissions(nullptr) {}
925 925
926 } // namespace net 926 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_unacked_packet_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698