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

Unified Diff: net/quic/quic_connection.cc

Issue 490263003: When talking >=QUIC_VERSION_22, regularly send updated bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 35617c89bc67378aa10a7567c317032a9536010e..03b9149eac154f5e4cba82fbfd2ef7023d89b9c3 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -251,7 +251,7 @@ QuicConnection::QuicConnection(QuicConnectionId connection_id,
framer_.set_visitor(this);
framer_.set_received_entropy_calculator(&received_packet_manager_);
stats_.connection_creation_time = clock_->ApproximateNow();
- sent_packet_manager_.set_network_change_visitor(&packet_generator_);
+ sent_packet_manager_.set_network_change_visitor(this);
}
QuicConnection::~QuicConnection() {
@@ -1542,6 +1542,11 @@ bool QuicConnection::OnSerializedPacket(
NOT_RETRANSMISSION);
}
+void QuicConnection::OnCongestionWindowChange(QuicByteCount congestion_window) {
+ packet_generator_.OnCongestionWindowChange(congestion_window);
+ visitor_->OnCongestionWindowChange(clock_->ApproximateNow());
+}
+
void QuicConnection::OnHandshakeComplete() {
sent_packet_manager_.SetHandshakeConfirmed();
}

Powered by Google App Engine
This is Rietveld 408576698