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