OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/core/quic_multipath_sent_packet_manager.h" | 5 #include "net/quic/core/quic_multipath_sent_packet_manager.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "net/quic/core/quic_bug_tracker.h" | 10 #include "net/quic/core/quic_bug_tracker.h" |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 void QuicMultipathSentPacketManager::OnApplicationLimited() { | 514 void QuicMultipathSentPacketManager::OnApplicationLimited() { |
515 for (PathSentPacketManagerInfo& path_manager_info : path_managers_info_) { | 515 for (PathSentPacketManagerInfo& path_manager_info : path_managers_info_) { |
516 if (path_manager_info.manager == nullptr || | 516 if (path_manager_info.manager == nullptr || |
517 path_manager_info.state != ACTIVE) { | 517 path_manager_info.state != ACTIVE) { |
518 continue; | 518 continue; |
519 } | 519 } |
520 path_manager_info.manager->OnApplicationLimited(); | 520 path_manager_info.manager->OnApplicationLimited(); |
521 } | 521 } |
522 } | 522 } |
523 | 523 |
| 524 const SendAlgorithmInterface* QuicMultipathSentPacketManager::GetSendAlgorithm() |
| 525 const { |
| 526 QuicSentPacketManagerInterface* path_manager = |
| 527 MaybeGetSentPacketManagerForActivePath(kDefaultPathId); |
| 528 if (path_manager == nullptr) { |
| 529 return nullptr; |
| 530 } |
| 531 return path_manager->GetSendAlgorithm(); |
| 532 } |
| 533 |
524 } // namespace net | 534 } // namespace net |
OLD | NEW |