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

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

Issue 2249783002: [m53 merge] Use LeastUnacked to calculate the packet number length instead of GetLeastPacketAwaited… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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_flags.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_sent_packet_manager.h" 5 #include "net/quic/quic_sent_packet_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 } 982 }
983 983
984 QuicPacketNumber QuicSentPacketManager::GetLargestObserved(QuicPathId) const { 984 QuicPacketNumber QuicSentPacketManager::GetLargestObserved(QuicPathId) const {
985 return unacked_packets_.largest_observed(); 985 return unacked_packets_.largest_observed();
986 } 986 }
987 987
988 QuicPacketNumber QuicSentPacketManager::GetLargestSentPacket(QuicPathId) const { 988 QuicPacketNumber QuicSentPacketManager::GetLargestSentPacket(QuicPathId) const {
989 return unacked_packets_.largest_sent_packet(); 989 return unacked_packets_.largest_sent_packet();
990 } 990 }
991 991
992 // Remove this method when deprecating QUIC_VERSION_33.
992 QuicPacketNumber QuicSentPacketManager::GetLeastPacketAwaitedByPeer( 993 QuicPacketNumber QuicSentPacketManager::GetLeastPacketAwaitedByPeer(
993 QuicPathId) const { 994 QuicPathId) const {
994 return least_packet_awaited_by_peer_; 995 return least_packet_awaited_by_peer_;
995 } 996 }
996 997
997 void QuicSentPacketManager::SetNetworkChangeVisitor( 998 void QuicSentPacketManager::SetNetworkChangeVisitor(
998 NetworkChangeVisitor* visitor) { 999 NetworkChangeVisitor* visitor) {
999 DCHECK(!network_change_visitor_); 1000 DCHECK(!network_change_visitor_);
1000 DCHECK(visitor); 1001 DCHECK(visitor);
1001 network_change_visitor_ = visitor; 1002 network_change_visitor_ = visitor;
(...skipping 14 matching lines...) Expand all
1016 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo( 1017 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo(
1017 QuicPacketNumber packet_number) { 1018 QuicPacketNumber packet_number) {
1018 return unacked_packets_.GetMutableTransmissionInfo(packet_number); 1019 return unacked_packets_.GetMutableTransmissionInfo(packet_number);
1019 } 1020 }
1020 1021
1021 void QuicSentPacketManager::RemoveObsoletePackets() { 1022 void QuicSentPacketManager::RemoveObsoletePackets() {
1022 unacked_packets_.RemoveObsoletePackets(); 1023 unacked_packets_.RemoveObsoletePackets();
1023 } 1024 }
1024 1025
1025 } // namespace net 1026 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698