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

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

Issue 1782143003: Remove FEC code from receive path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115997404
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_multipath_received_packet_manager.h" 5 #include "net/quic/quic_multipath_received_packet_manager.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 8
9 #include "net/quic/quic_bug_tracker.h" 9 #include "net/quic/quic_bug_tracker.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 QuicTime receipt_time) { 50 QuicTime receipt_time) {
51 QuicReceivedPacketManager* manager = path_managers_[path_id]; 51 QuicReceivedPacketManager* manager = path_managers_[path_id];
52 if (manager == nullptr) { 52 if (manager == nullptr) {
53 QUIC_BUG << "Received a packet on a non-existent path."; 53 QUIC_BUG << "Received a packet on a non-existent path.";
54 return; 54 return;
55 } 55 }
56 56
57 manager->RecordPacketReceived(bytes, header, receipt_time); 57 manager->RecordPacketReceived(bytes, header, receipt_time);
58 } 58 }
59 59
60 void QuicMultipathReceivedPacketManager::RecordPacketRevived(
61 QuicPathId path_id,
62 QuicPacketNumber packet_number) {
63 QuicReceivedPacketManager* manager = path_managers_[path_id];
64 if (manager == nullptr) {
65 QUIC_BUG << "Revived a packet on a non-existent path.";
66 return;
67 }
68
69 manager->RecordPacketRevived(packet_number);
70 }
71
72 bool QuicMultipathReceivedPacketManager::IsMissing( 60 bool QuicMultipathReceivedPacketManager::IsMissing(
73 QuicPathId path_id, 61 QuicPathId path_id,
74 QuicPacketNumber packet_number) { 62 QuicPacketNumber packet_number) {
75 QuicReceivedPacketManager* manager = path_managers_[path_id]; 63 QuicReceivedPacketManager* manager = path_managers_[path_id];
76 if (manager == nullptr) { 64 if (manager == nullptr) {
77 QUIC_BUG << "Check whether a packet is missing on a non-existent path."; 65 QUIC_BUG << "Check whether a packet is missing on a non-existent path.";
78 return true; 66 return true;
79 } 67 }
80 68
81 return manager->IsMissing(packet_number); 69 return manager->IsMissing(packet_number);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (manager == nullptr) { 127 if (manager == nullptr) {
140 QUIC_BUG 128 QUIC_BUG
141 << "Try to get peer_least_packet_awaiting_ack of a non-existent path."; 129 << "Try to get peer_least_packet_awaiting_ack of a non-existent path.";
142 return false; 130 return false;
143 } 131 }
144 132
145 return manager->peer_least_packet_awaiting_ack(); 133 return manager->peer_least_packet_awaiting_ack();
146 } 134 }
147 135
148 } // namespace net 136 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_multipath_received_packet_manager.h ('k') | net/quic/quic_multipath_received_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698