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

Unified Diff: net/quic/reliable_quic_stream.h

Issue 305033011: QUIC flow control now based on highest received byte offset rather than (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/quic_stream_sequencer.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/reliable_quic_stream.h
diff --git a/net/quic/reliable_quic_stream.h b/net/quic/reliable_quic_stream.h
index 7016d81960fa31a9e6178a3762c94b097072fd47..68ff6ddaeba171cd38778adbce67d5352b40d1f9 100644
--- a/net/quic/reliable_quic_stream.h
+++ b/net/quic/reliable_quic_stream.h
@@ -98,11 +98,9 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
QuicFlowController* flow_controller() { return &flow_controller_; }
- // Called by the stream sequencer as bytes are added to the buffer.
- void AddBytesBuffered(uint64 bytes);
- // Called by the stream sequencer as bytes are removed from the buffer.
- void RemoveBytesBuffered(uint64 bytes);
- // Called when bytes are sent to the peer.
+ // Called when we see a frame which could increase the highest offset.
+ void MaybeIncreaseHighestReceivedOffset(uint64 new_offset);
+ // Called when bytese are sent to the peer.
void AddBytesSent(uint64 bytes);
// Called by the stream sequencer as bytes are consumed from the buffer.
// If our receive window has dropped below the threshold, then send a
@@ -168,12 +166,6 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
scoped_refptr<ProxyAckNotifierDelegate> delegate;
};
- // Calculates and returns available flow control send window.
- uint64 SendWindowSize() const;
-
- // Calculates and returns total number of bytes this stream has received.
- uint64 TotalReceivedBytes() const;
-
// Calls MaybeSendBlocked on our flow controller, and connection level flow
// controller. If we are flow control blocked, marks this stream as write
// blocked.
« no previous file with comments | « net/quic/quic_stream_sequencer.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698