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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 ConnectionCloseSource::FROM_SELF); | 510 ConnectionCloseSource::FROM_SELF); |
511 return; | 511 return; |
512 } | 512 } |
513 const string error_details = "Sent packet manager of path: (" + | 513 const string error_details = "Sent packet manager of path: (" + |
514 base::IntToString(path_id) + | 514 base::IntToString(path_id) + |
515 ") must be active but is not."; | 515 ") must be active but is not."; |
516 delegate_->OnUnrecoverableError(QUIC_MULTIPATH_PATH_NOT_ACTIVE, error_details, | 516 delegate_->OnUnrecoverableError(QUIC_MULTIPATH_PATH_NOT_ACTIVE, error_details, |
517 ConnectionCloseSource::FROM_SELF); | 517 ConnectionCloseSource::FROM_SELF); |
518 } | 518 } |
519 | 519 |
| 520 void QuicMultipathSentPacketManager::OnApplicationLimited() { |
| 521 for (PathSentPacketManagerInfo& path_manager_info : path_managers_info_) { |
| 522 if (path_manager_info.manager == nullptr || |
| 523 path_manager_info.state != ACTIVE) { |
| 524 continue; |
| 525 } |
| 526 path_manager_info.manager->OnApplicationLimited(); |
| 527 } |
| 528 } |
| 529 |
520 } // namespace net | 530 } // namespace net |
OLD | NEW |