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

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

Issue 2237163002: Use LeastUnacked to calculate the packet number length instead of GetLeastPacketAwaitedByPeer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Revert
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/core/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/core/quic_sent_packet_manager.h" 5 #include "net/quic/core/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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 } 979 }
980 980
981 QuicPacketNumber QuicSentPacketManager::GetLargestObserved(QuicPathId) const { 981 QuicPacketNumber QuicSentPacketManager::GetLargestObserved(QuicPathId) const {
982 return unacked_packets_.largest_observed(); 982 return unacked_packets_.largest_observed();
983 } 983 }
984 984
985 QuicPacketNumber QuicSentPacketManager::GetLargestSentPacket(QuicPathId) const { 985 QuicPacketNumber QuicSentPacketManager::GetLargestSentPacket(QuicPathId) const {
986 return unacked_packets_.largest_sent_packet(); 986 return unacked_packets_.largest_sent_packet();
987 } 987 }
988 988
989 // Remove this method when deprecating QUIC_VERSION_33.
989 QuicPacketNumber QuicSentPacketManager::GetLeastPacketAwaitedByPeer( 990 QuicPacketNumber QuicSentPacketManager::GetLeastPacketAwaitedByPeer(
990 QuicPathId) const { 991 QuicPathId) const {
991 return least_packet_awaited_by_peer_; 992 return least_packet_awaited_by_peer_;
992 } 993 }
993 994
994 void QuicSentPacketManager::SetNetworkChangeVisitor( 995 void QuicSentPacketManager::SetNetworkChangeVisitor(
995 NetworkChangeVisitor* visitor) { 996 NetworkChangeVisitor* visitor) {
996 DCHECK(!network_change_visitor_); 997 DCHECK(!network_change_visitor_);
997 DCHECK(visitor); 998 DCHECK(visitor);
998 network_change_visitor_ = visitor; 999 network_change_visitor_ = visitor;
(...skipping 14 matching lines...) Expand all
1013 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo( 1014 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo(
1014 QuicPacketNumber packet_number) { 1015 QuicPacketNumber packet_number) {
1015 return unacked_packets_.GetMutableTransmissionInfo(packet_number); 1016 return unacked_packets_.GetMutableTransmissionInfo(packet_number);
1016 } 1017 }
1017 1018
1018 void QuicSentPacketManager::RemoveObsoletePackets() { 1019 void QuicSentPacketManager::RemoveObsoletePackets() {
1019 unacked_packets_.RemoveObsoletePackets(); 1020 unacked_packets_.RemoveObsoletePackets();
1020 } 1021 }
1021 1022
1022 } // namespace net 1023 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698