Index: net/quic/quic_protocol.cc |
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc |
index b9acec1243cf5af8779636289da67fefab6ddddb..3d5d2179f8df0d192259cd16902bccc455013cef 100644 |
--- a/net/quic/quic_protocol.cc |
+++ b/net/quic/quic_protocol.cc |
@@ -238,25 +238,17 @@ ostream& operator<<(ostream& os, const QuicPacketHeader& header) { |
return os; |
} |
-ReceivedPacketInfo::ReceivedPacketInfo() |
- : entropy_hash(0), |
- largest_observed(0), |
- delta_time_largest_observed(QuicTime::Delta::Infinite()), |
- is_truncated(false) {} |
- |
-ReceivedPacketInfo::~ReceivedPacketInfo() {} |
- |
-bool IsAwaitingPacket(const ReceivedPacketInfo& received_info, |
+bool IsAwaitingPacket(const QuicAckFrame& ack_frame, |
QuicPacketSequenceNumber sequence_number) { |
- return sequence_number > received_info.largest_observed || |
- ContainsKey(received_info.missing_packets, sequence_number); |
+ return sequence_number > ack_frame.largest_observed || |
+ ContainsKey(ack_frame.missing_packets, sequence_number); |
} |
-void InsertMissingPacketsBetween(ReceivedPacketInfo* received_info, |
+void InsertMissingPacketsBetween(QuicAckFrame* ack_frame, |
QuicPacketSequenceNumber lower, |
QuicPacketSequenceNumber higher) { |
for (QuicPacketSequenceNumber i = lower; i < higher; ++i) { |
- received_info->missing_packets.insert(i); |
+ ack_frame->missing_packets.insert(i); |
} |
} |
@@ -267,7 +259,13 @@ QuicStopWaitingFrame::QuicStopWaitingFrame() |
QuicStopWaitingFrame::~QuicStopWaitingFrame() {} |
-QuicAckFrame::QuicAckFrame() {} |
+QuicAckFrame::QuicAckFrame() |
+ : entropy_hash(0), |
+ largest_observed(0), |
+ delta_time_largest_observed(QuicTime::Delta::Infinite()), |
+ is_truncated(false) {} |
+ |
+QuicAckFrame::~QuicAckFrame() {} |
CongestionFeedbackMessageTCP::CongestionFeedbackMessageTCP() |
: receive_window(0) { |
@@ -381,22 +379,20 @@ ostream& operator<<(ostream& os, const QuicStopWaitingFrame& sent_info) { |
return os; |
} |
-ostream& operator<<(ostream& os, const ReceivedPacketInfo& received_info) { |
- os << "entropy_hash: " << static_cast<int>(received_info.entropy_hash) |
- << " is_truncated: " << received_info.is_truncated |
- << " largest_observed: " << received_info.largest_observed |
+ostream& operator<<(ostream& os, const QuicAckFrame& ack_frame) { |
+ os << "entropy_hash: " << static_cast<int>(ack_frame.entropy_hash) |
+ << " is_truncated: " << ack_frame.is_truncated |
+ << " largest_observed: " << ack_frame.largest_observed |
<< " delta_time_largest_observed: " |
- << received_info.delta_time_largest_observed.ToMicroseconds() |
+ << ack_frame.delta_time_largest_observed.ToMicroseconds() |
<< " missing_packets: [ "; |
- for (SequenceNumberSet::const_iterator it = |
- received_info.missing_packets.begin(); |
- it != received_info.missing_packets.end(); ++it) { |
+ for (SequenceNumberSet::const_iterator it = ack_frame.missing_packets.begin(); |
+ it != ack_frame.missing_packets.end(); ++it) { |
os << *it << " "; |
} |
os << " ] revived_packets: [ "; |
- for (SequenceNumberSet::const_iterator it = |
- received_info.revived_packets.begin(); |
- it != received_info.revived_packets.end(); ++it) { |
+ for (SequenceNumberSet::const_iterator it = ack_frame.revived_packets.begin(); |
+ it != ack_frame.revived_packets.end(); ++it) { |
os << *it << " "; |
} |
os << " ]"; |
@@ -498,11 +494,6 @@ ostream& operator<<(ostream& os, const QuicStreamFrame& stream_frame) { |
return os; |
} |
-ostream& operator<<(ostream& os, const QuicAckFrame& ack_frame) { |
- os << "received info { " << ack_frame.received_info << " }\n"; |
- return os; |
-} |
- |
ostream& operator<<(ostream& os, |
const QuicCongestionFeedbackFrame& congestion_frame) { |
os << "type: " << congestion_frame.type; |