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

Unified Diff: net/quic/quic_ack_notifier.cc

Issue 798873005: Remove unused original transmission stats from QuicAckNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removing_quic_version_21_83551025
Patch Set: Created 5 years, 11 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_ack_notifier.h ('k') | net/quic/quic_ack_notifier_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_ack_notifier.cc
diff --git a/net/quic/quic_ack_notifier.cc b/net/quic/quic_ack_notifier.cc
index 55e829f9fa6b608e282b1976a944ba3c72a11015..178098591fbcba268584b71e02afc20e97c51b09 100644
--- a/net/quic/quic_ack_notifier.cc
+++ b/net/quic/quic_ack_notifier.cc
@@ -27,8 +27,6 @@ QuicAckNotifier::DelegateInterface::~DelegateInterface() {}
QuicAckNotifier::QuicAckNotifier(DelegateInterface* delegate)
: delegate_(delegate),
- original_packet_count_(0),
- original_byte_count_(0),
retransmitted_packet_count_(0),
retransmitted_byte_count_(0) {
DCHECK(delegate);
@@ -42,8 +40,6 @@ void QuicAckNotifier::AddSequenceNumber(
int packet_payload_size) {
sequence_numbers_.insert(make_pair(sequence_number,
PacketInfo(packet_payload_size)));
- ++original_packet_count_;
- original_byte_count_ += packet_payload_size;
DVLOG(1) << "AckNotifier waiting for packet: " << sequence_number;
}
@@ -55,10 +51,9 @@ bool QuicAckNotifier::OnAck(QuicPacketSequenceNumber sequence_number,
if (IsEmpty()) {
// We have seen all the sequence numbers we were waiting for, trigger
// callback notification.
- delegate_->OnAckNotification(
- original_packet_count_, original_byte_count_,
- retransmitted_packet_count_, retransmitted_byte_count_,
- delta_largest_observed);
+ delegate_->OnAckNotification(retransmitted_packet_count_,
+ retransmitted_byte_count_,
+ delta_largest_observed);
return true;
}
return false;
« no previous file with comments | « net/quic/quic_ack_notifier.h ('k') | net/quic/quic_ack_notifier_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698