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

Unified Diff: net/quic/core/quic_flow_controller.h

Issue 2846033002: Part of QUIC v39 change: 1) do not ack acks. 2) Send a WINDOW_UPDATE frame every 20 packets which d… (Closed)
Patch Set: Created 3 years, 8 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/core/quic_connection_test.cc ('k') | net/quic/core/quic_flow_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_flow_controller.h
diff --git a/net/quic/core/quic_flow_controller.h b/net/quic/core/quic_flow_controller.h
index 97c6fdaf03c5f83af4ccc5d40bfd3889b659bd59..f183741ada31f2c0f0aaedab89e344e30b4099d6 100644
--- a/net/quic/core/quic_flow_controller.h
+++ b/net/quic/core/quic_flow_controller.h
@@ -83,6 +83,9 @@ class QUIC_EXPORT_PRIVATE QuicFlowController
// Returns true if flow control receive limits have been violated by the peer.
bool FlowControlViolation();
+ // Inform the peer of new receive window.
+ void SendWindowUpdate();
+
QuicByteCount bytes_consumed() const { return bytes_consumed_; }
QuicStreamOffset highest_received_byte_offset() const {
@@ -113,7 +116,8 @@ class QUIC_EXPORT_PRIVATE QuicFlowController
void MaybeIncreaseMaxWindowSize();
// Updates the current offset and sends a window update frame.
- void SendWindowUpdate(QuicStreamOffset available_window);
+ void UpdateReceiveWindowOffsetAndSendWindowUpdate(
+ QuicStreamOffset available_window);
// Double the window size as long as we haven't hit the max window size.
void IncreaseWindowSize();
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_flow_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698