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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_sent_packet_manager.h ('k') | net/quic/quic_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 142871ef597822975e52fb2bf0079a8c1d801985..56c327cb6150e9bd56385cece38a307fc2183dab 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -163,9 +163,9 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
}
}
-void QuicSentPacketManager::ResumeConnectionState(
+bool QuicSentPacketManager::ResumeConnectionState(
const CachedNetworkParameters& cached_network_params) {
- send_algorithm_->ResumeConnectionState(cached_network_params);
+ return send_algorithm_->ResumeConnectionState(cached_network_params);
}
void QuicSentPacketManager::SetNumOpenStreams(size_t num_streams) {
@@ -285,7 +285,7 @@ void QuicSentPacketManager::HandleAckForSentPackets(
// threshold is to tolerate re-ordering. This handles both StretchAcks
// and Forward Acks.
// The nack count only increases when the largest observed increases.
- size_t min_nacks = ack_frame.largest_observed - sequence_number;
+ QuicPacketCount min_nacks = ack_frame.largest_observed - sequence_number;
// Truncated acks can nack the largest observed, so use a min of 1.
if (min_nacks == 0) {
min_nacks = 1;
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698