Index: net/quic/reliable_quic_stream.h |
diff --git a/net/quic/reliable_quic_stream.h b/net/quic/reliable_quic_stream.h |
index 5b5ae0ff835cfee5149da009697e2ff8c34480ca..24bc34988320bc3c153cd61213d06347365b6395 100644 |
--- a/net/quic/reliable_quic_stream.h |
+++ b/net/quic/reliable_quic_stream.h |
@@ -111,6 +111,10 @@ class NET_EXPORT_PRIVATE ReliableQuicStream { |
// WINDOW_UPDATE frame. |
void AddBytesConsumed(uint64 bytes); |
+ // Updates the flow controller's send window offset and calls OnCanWrite if |
+ // it was blocked before. |
+ void UpdateSendWindowOffset(uint64 new_offset); |
+ |
// Returns true if the stream is flow control blocked, by the stream flow |
// control window or the connection flow control window. |
bool IsFlowControlBlocked(); |
@@ -123,6 +127,9 @@ class NET_EXPORT_PRIVATE ReliableQuicStream { |
return fin_received_ || rst_received_; |
} |
+ // Returns true if the stream has queued data waiting to write. |
+ bool HasBufferedData() const; |
+ |
protected: |
// Sends as much of 'data' to the connection as the connection will consume, |
// and then buffers any remaining data in queued_data_. |
@@ -151,8 +158,6 @@ class NET_EXPORT_PRIVATE ReliableQuicStream { |
// Close the write side of the socket. Further writes will fail. |
void CloseWriteSide(); |
- bool HasBufferedData() const; |
- |
bool fin_buffered() const { return fin_buffered_; } |
const QuicSession* session() const { return session_; } |