| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |