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

Side by Side Diff: net/quic/core/congestion_control/bbr_sender.cc

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage 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 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 "net/quic/core/congestion_control/rtt_stats.h" 10 #include "net/quic/core/congestion_control/rtt_stats.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 cycle_current_offset_(0), 91 cycle_current_offset_(0),
92 last_cycle_start_(QuicTime::Zero()), 92 last_cycle_start_(QuicTime::Zero()),
93 is_at_full_bandwidth_(false), 93 is_at_full_bandwidth_(false),
94 rounds_without_bandwidth_gain_(0), 94 rounds_without_bandwidth_gain_(0),
95 bandwidth_at_last_round_(QuicBandwidth::Zero()), 95 bandwidth_at_last_round_(QuicBandwidth::Zero()),
96 exiting_quiescence_(false), 96 exiting_quiescence_(false),
97 exit_probe_rtt_at_(QuicTime::Zero()), 97 exit_probe_rtt_at_(QuicTime::Zero()),
98 probe_rtt_round_passed_(false), 98 probe_rtt_round_passed_(false),
99 last_sample_is_app_limited_(false), 99 last_sample_is_app_limited_(false),
100 recovery_state_(NOT_IN_RECOVERY), 100 recovery_state_(NOT_IN_RECOVERY),
101 end_recovery_at_(0) { 101 end_recovery_at_(0),
102 recovery_window_(max_congestion_window_) {
102 EnterStartupMode(); 103 EnterStartupMode();
103 } 104 }
104 105
105 BbrSender::~BbrSender() {} 106 BbrSender::~BbrSender() {}
106 107
107 bool BbrSender::InSlowStart() const { 108 bool BbrSender::InSlowStart() const {
108 return mode_ == STARTUP; 109 return mode_ == STARTUP;
109 } 110 }
110 111
111 bool BbrSender::OnPacketSent(QuicTime sent_time, 112 bool BbrSender::OnPacketSent(QuicTime sent_time,
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() 556 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue()
556 << std::endl; 557 << std::endl;
557 558
558 os << "Last sample is app-limited: " 559 os << "Last sample is app-limited: "
559 << (state.last_sample_is_app_limited ? "yes" : "no"); 560 << (state.last_sample_is_app_limited ? "yes" : "no");
560 561
561 return os; 562 return os;
562 } 563 }
563 564
564 } // namespace net 565 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/bbr_sender.h ('k') | net/quic/core/congestion_control/bbr_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698