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

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

Issue 12334063: Land recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more EXPECT_FALSE Created 7 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/quic/congestion_control/leaky_bucket_test.cc ('k') | net/quic/congestion_control/paced_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/paced_sender.h
diff --git a/net/quic/congestion_control/paced_sender.h b/net/quic/congestion_control/paced_sender.h
index af3adafb44b39750030ede1adfc3999fd1b12ced..5f61b76f0abd4de80397070245f70859a02d7c1e 100644
--- a/net/quic/congestion_control/paced_sender.h
+++ b/net/quic/congestion_control/paced_sender.h
@@ -11,28 +11,22 @@
#include "net/base/net_export.h"
#include "net/quic/congestion_control/leaky_bucket.h"
#include "net/quic/quic_bandwidth.h"
-#include "net/quic/quic_clock.h"
#include "net/quic/quic_time.h"
namespace net {
class NET_EXPORT_PRIVATE PacedSender {
public:
- PacedSender(const QuicClock* clock, QuicBandwidth bandwidth_estimate);
+ explicit PacedSender(QuicBandwidth bandwidth_estimate);
// The estimated bandidth from the congestion algorithm changed.
- void UpdateBandwidthEstimate(QuicBandwidth bandwidth_estimate);
+ void UpdateBandwidthEstimate(QuicTime now, QuicBandwidth bandwidth_estimate);
// A packet of size bytes was sent.
- void SentPacket(QuicByteCount bytes);
+ void SentPacket(QuicTime now, QuicByteCount bytes);
// Return time until we can send based on the pacing.
- QuicTime::Delta TimeUntilSend(QuicTime::Delta time_until_send);
-
- // Return the amount of data in bytes we can send based on the pacing.
- // available_congestion_window is the congestion algorithms available
- // congestion window in bytes.
- QuicByteCount AvailableWindow(QuicByteCount available_congestion_window);
+ QuicTime::Delta TimeUntilSend(QuicTime now, QuicTime::Delta time_until_send);
private:
// Helper object to track the rate data can leave the buffer for pacing.
« no previous file with comments | « net/quic/congestion_control/leaky_bucket_test.cc ('k') | net/quic/congestion_control/paced_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698