| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/congestion_control/bbr_sender.h" | 5 #include "net/quic/core/congestion_control/bbr_sender.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 bandwidth_at_last_round(sender.bandwidth_at_last_round_), | 57 bandwidth_at_last_round(sender.bandwidth_at_last_round_), |
| 58 rounds_without_bandwidth_gain(sender.rounds_without_bandwidth_gain_), | 58 rounds_without_bandwidth_gain(sender.rounds_without_bandwidth_gain_), |
| 59 min_rtt(sender.min_rtt_), | 59 min_rtt(sender.min_rtt_), |
| 60 min_rtt_timestamp(sender.min_rtt_timestamp_), | 60 min_rtt_timestamp(sender.min_rtt_timestamp_), |
| 61 recovery_state(sender.recovery_state_), | 61 recovery_state(sender.recovery_state_), |
| 62 recovery_window(sender.recovery_window_), | 62 recovery_window(sender.recovery_window_), |
| 63 last_sample_is_app_limited(sender.last_sample_is_app_limited_) {} | 63 last_sample_is_app_limited(sender.last_sample_is_app_limited_) {} |
| 64 | 64 |
| 65 BbrSender::DebugState::DebugState(const DebugState& state) = default; | 65 BbrSender::DebugState::DebugState(const DebugState& state) = default; |
| 66 | 66 |
| 67 BbrSender::BbrSender(const QuicClock* clock, | 67 BbrSender::BbrSender(const RttStats* rtt_stats, |
| 68 const RttStats* rtt_stats, | |
| 69 const QuicUnackedPacketMap* unacked_packets, | 68 const QuicUnackedPacketMap* unacked_packets, |
| 70 QuicPacketCount initial_tcp_congestion_window, | 69 QuicPacketCount initial_tcp_congestion_window, |
| 71 QuicPacketCount max_tcp_congestion_window, | 70 QuicPacketCount max_tcp_congestion_window, |
| 72 QuicRandom* random) | 71 QuicRandom* random) |
| 73 : clock_(clock), | 72 : rtt_stats_(rtt_stats), |
| 74 rtt_stats_(rtt_stats), | |
| 75 unacked_packets_(unacked_packets), | 73 unacked_packets_(unacked_packets), |
| 76 random_(random), | 74 random_(random), |
| 77 mode_(STARTUP), | 75 mode_(STARTUP), |
| 78 sampler_(), | 76 sampler_(), |
| 79 round_trip_count_(0), | 77 round_trip_count_(0), |
| 80 last_sent_packet_(0), | 78 last_sent_packet_(0), |
| 81 current_round_trip_end_(0), | 79 current_round_trip_end_(0), |
| 82 max_bandwidth_(kBandwidthWindowSize, QuicBandwidth::Zero(), 0), | 80 max_bandwidth_(kBandwidthWindowSize, QuicBandwidth::Zero(), 0), |
| 83 min_rtt_(QuicTime::Delta::Zero()), | 81 min_rtt_(QuicTime::Delta::Zero()), |
| 84 min_rtt_timestamp_(QuicTime::Zero()), | 82 min_rtt_timestamp_(QuicTime::Zero()), |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() | 573 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() |
| 576 << std::endl; | 574 << std::endl; |
| 577 | 575 |
| 578 os << "Last sample is app-limited: " | 576 os << "Last sample is app-limited: " |
| 579 << (state.last_sample_is_app_limited ? "yes" : "no"); | 577 << (state.last_sample_is_app_limited ? "yes" : "no"); |
| 580 | 578 |
| 581 return os; | 579 return os; |
| 582 } | 580 } |
| 583 | 581 |
| 584 } // namespace net | 582 } // namespace net |
| OLD | NEW |