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

Side by Side Diff: net/quic/core/quic_multipath_sent_packet_manager.cc

Issue 2540143003: Allow congestion controller state to be accessed by the debug visitors. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager.h ('k') | net/quic/core/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698