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

Unified Diff: net/quic/core/quic_multipath_sent_packet_manager.cc

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/core/quic_multipath_sent_packet_manager.cc
diff --git a/net/quic/core/quic_multipath_sent_packet_manager.cc b/net/quic/core/quic_multipath_sent_packet_manager.cc
index 5d46ec10f0606bdaf2eeade0975eaa6153ca57ee..87010370a6b89130e5bbbac9d1321043ba5cc69b 100644
--- a/net/quic/core/quic_multipath_sent_packet_manager.cc
+++ b/net/quic/core/quic_multipath_sent_packet_manager.cc
@@ -129,7 +129,7 @@ bool QuicMultipathSentPacketManager::HasPendingRetransmissions() const {
return path_manager != nullptr && path_manager->HasPendingRetransmissions();
}
-PendingRetransmission
+QuicPendingRetransmission
QuicMultipathSentPacketManager::NextPendingRetransmission() {
// TODO(fayang): Move pending_retransmissions_ from path sent packet manager
// to multipath sent packet manager.
@@ -138,9 +138,9 @@ QuicMultipathSentPacketManager::NextPendingRetransmission() {
if (path_manager == nullptr) {
OnUnrecoverablePathError(kDefaultPathId);
QuicFrames retransmittable_frames;
- return PendingRetransmission(kInvalidPathId, 0u, NOT_RETRANSMISSION,
- retransmittable_frames, false, 0,
- ENCRYPTION_NONE, PACKET_1BYTE_PACKET_NUMBER);
+ return QuicPendingRetransmission(
+ kInvalidPathId, 0u, NOT_RETRANSMISSION, retransmittable_frames, false,
+ 0, ENCRYPTION_NONE, PACKET_1BYTE_PACKET_NUMBER);
}
return path_manager->NextPendingRetransmission();
}
@@ -521,4 +521,14 @@ void QuicMultipathSentPacketManager::OnApplicationLimited() {
}
}
+const SendAlgorithmInterface* QuicMultipathSentPacketManager::GetSendAlgorithm()
+ const {
+ QuicSentPacketManagerInterface* path_manager =
+ MaybeGetSentPacketManagerForActivePath(kDefaultPathId);
+ if (path_manager == nullptr) {
+ return nullptr;
+ }
+ return path_manager->GetSendAlgorithm();
+}
+
} // namespace net
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager.h ('k') | net/quic/core/quic_multipath_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698