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

Unified Diff: net/quic/reliable_quic_stream.h

Issue 312553003: Land Recent QUIC Changes. (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 90cdac44551af58b9ed553c2d4b43b34cdbb94fe..68ff6ddaeba171cd38778adbce67d5352b40d1f9 100644
--- a/net/quic/reliable_quic_stream.h
+++ b/net/quic/reliable_quic_stream.h
@@ -92,24 +92,19 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
// Adjust our flow control windows according to new offset in |frame|.
virtual void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame);
- // If our receive window has dropped below the threshold, then send a
- // WINDOW_UPDATE frame. This is called whenever bytes are consumed from the
- // sequencer's buffer.
- void MaybeSendWindowUpdate();
-
int num_frames_received() const;
int num_duplicate_frames_received() const;
QuicFlowController* flow_controller() { return &flow_controller_; }
- // Called by the stream sequeuncer as bytes are added to the buffer.
- void AddBytesBuffered(uint64 bytes);
- // Called by the stream sequeuncer as bytes are removed from the buffer.
- void RemoveBytesBuffered(uint64 bytes);
+ // 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 sequeuncer as bytes are consumed from the buffer.
+ // Called by the stream sequencer as bytes are consumed from the buffer.
+ // If our receive window has dropped below the threshold, then send a
+ // WINDOW_UPDATE frame.
void AddBytesConsumed(uint64 bytes);
// Returns true if the stream is flow control blocked, by the stream flow
@@ -171,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