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

Unified Diff: net/quic/reliable_quic_stream.h

Issue 366863002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: net/quic/reliable_quic_stream.h
diff --git a/net/quic/reliable_quic_stream.h b/net/quic/reliable_quic_stream.h
index 11a264e5ca134ed900466becb96d2c4eeaeeb5eb..84eedec18a87b487d424c54cffab08e457fe9cdd 100644
--- a/net/quic/reliable_quic_stream.h
+++ b/net/quic/reliable_quic_stream.h
@@ -162,10 +162,15 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
const QuicStreamSequencer* sequencer() const { return &sequencer_; }
QuicStreamSequencer* sequencer() { return &sequencer_; }
+ // TODO(rjshade): Remove this method when removing QUIC_VERSION_20.
void DisableFlowControl() {
flow_controller_.Disable();
}
+ void DisableConnectionFlowControlForThisStream() {
+ stream_contributes_to_connection_flow_control_ = false;
+ }
+
private:
friend class test::ReliableQuicStreamPeer;
friend class QuicStreamUtils;
@@ -235,6 +240,11 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
// The connection level flow controller. Not owned.
QuicFlowController* connection_flow_controller_;
+ // Special streams, such as the crypto and headers streams, do not respect
+ // connection level flow control limits (but are stream level flow control
+ // limited).
+ bool stream_contributes_to_connection_flow_control_;
+
DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream);
};

Powered by Google App Engine
This is Rietveld 408576698