| 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 bool QuicSentPacketManager::HasUnackedPackets() const { | 548 bool QuicSentPacketManager::HasUnackedPackets() const { |
| 549 return unacked_packets_.HasUnackedPackets(); | 549 return unacked_packets_.HasUnackedPackets(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 QuicPacketNumber QuicSentPacketManager::GetLeastUnacked() const { | 552 QuicPacketNumber QuicSentPacketManager::GetLeastUnacked() const { |
| 553 return unacked_packets_.GetLeastUnacked(); | 553 return unacked_packets_.GetLeastUnacked(); |
| 554 } | 554 } |
| 555 | 555 |
| 556 bool QuicSentPacketManager::OnPacketSent( | 556 bool QuicSentPacketManager::OnPacketSent( |
| 557 SerializedPacket* serialized_packet, | 557 SerializedPacket* serialized_packet, |
| 558 QuicPathId /*original_path_id*/, |
| 558 QuicPacketNumber original_packet_number, | 559 QuicPacketNumber original_packet_number, |
| 559 QuicTime sent_time, | 560 QuicTime sent_time, |
| 560 TransmissionType transmission_type, | 561 TransmissionType transmission_type, |
| 561 HasRetransmittableData has_retransmittable_data) { | 562 HasRetransmittableData has_retransmittable_data) { |
| 562 QuicPacketNumber packet_number = serialized_packet->packet_number; | 563 QuicPacketNumber packet_number = serialized_packet->packet_number; |
| 563 DCHECK_LT(0u, packet_number); | 564 DCHECK_LT(0u, packet_number); |
| 564 DCHECK(!unacked_packets_.IsUnacked(packet_number)); | 565 DCHECK(!unacked_packets_.IsUnacked(packet_number)); |
| 565 QUIC_BUG_IF(serialized_packet->encrypted_length == 0) | 566 QUIC_BUG_IF(serialized_packet->encrypted_length == 0) |
| 566 << "Cannot send empty packets."; | 567 << "Cannot send empty packets."; |
| 567 | 568 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo( | 983 TransmissionInfo* QuicSentPacketManager::GetMutableTransmissionInfo( |
| 983 QuicPacketNumber packet_number) { | 984 QuicPacketNumber packet_number) { |
| 984 return unacked_packets_.GetMutableTransmissionInfo(packet_number); | 985 return unacked_packets_.GetMutableTransmissionInfo(packet_number); |
| 985 } | 986 } |
| 986 | 987 |
| 987 void QuicSentPacketManager::RemoveObsoletePackets() { | 988 void QuicSentPacketManager::RemoveObsoletePackets() { |
| 988 unacked_packets_.RemoveObsoletePackets(); | 989 unacked_packets_.RemoveObsoletePackets(); |
| 989 } | 990 } |
| 990 | 991 |
| 991 } // namespace net | 992 } // namespace net |
| OLD | NEW |