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

Unified Diff: net/quic/congestion_control/cubic.h

Issue 182523002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed rch's comments in Patch set 1 of CL 181463007 Created 6 years, 10 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
« no previous file with comments | « net/net.gyp ('k') | net/quic/congestion_control/cubic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/cubic.h
diff --git a/net/quic/congestion_control/cubic.h b/net/quic/congestion_control/cubic.h
index a7015964e2bfb03d01cbd57a50f66f855333d719..da41ddf8ab2f16bf9ed11a00994750a2bca16167 100644
--- a/net/quic/congestion_control/cubic.h
+++ b/net/quic/congestion_control/cubic.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "net/base/net_export.h"
#include "net/quic/quic_clock.h"
+#include "net/quic/quic_connection_stats.h"
#include "net/quic/quic_time.h"
namespace net {
@@ -20,7 +21,7 @@ typedef uint32 QuicTcpCongestionWindow;
class NET_EXPORT_PRIVATE Cubic {
public:
- explicit Cubic(const QuicClock* clock);
+ Cubic(const QuicClock* clock, QuicConnectionStats* stats);
// Call after a timeout to reset the cubic state.
void Reset();
@@ -44,6 +45,9 @@ class NET_EXPORT_PRIVATE Cubic {
return QuicTime::Delta::FromMilliseconds(30);
}
+ // Update congestion control variables in QuicConnectionStats.
+ void UpdateCongestionControlStats(QuicTcpCongestionWindow new_cubic_mode_cwnd,
+ QuicTcpCongestionWindow new_reno_mode_cwnd);
const QuicClock* clock_;
// Time when this cycle started, after last loss event.
@@ -75,6 +79,9 @@ class NET_EXPORT_PRIVATE Cubic {
// Last congestion window in packets computed by cubic function.
QuicTcpCongestionWindow last_target_congestion_window_;
+ // QuicConnectionStats includes congestion control related stats.
+ QuicConnectionStats* stats_;
+
DISALLOW_COPY_AND_ASSIGN(Cubic);
};
« no previous file with comments | « net/net.gyp ('k') | net/quic/congestion_control/cubic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698