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

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

Issue 2229023002: Track when QUIC connections are application limited. Protected by quic_enable_app_limited_check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129327247
Patch Set: git pull upper stream Created 4 years, 4 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) 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
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
OLDNEW
« 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