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. |