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

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

Issue 1962643003: Add original_path_id to SerializedPacket and OnPacketSent. No functional change expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_sent_packet_manager.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698