OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/core/quic_headers_stream.h" | 5 #include "net/quic/core/quic_headers_stream.h" |
6 | 6 |
7 #include "net/quic/core/quic_flags.h" | |
8 #include "net/quic/core/quic_spdy_session.h" | 7 #include "net/quic/core/quic_spdy_session.h" |
| 8 #include "net/quic/platform/api/quic_flags.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 QuicHeadersStream::QuicHeadersStream(QuicSpdySession* session) | 12 QuicHeadersStream::QuicHeadersStream(QuicSpdySession* session) |
13 : QuicStream(kHeadersStreamId, session), spdy_session_(session) { | 13 : QuicStream(kHeadersStreamId, session), spdy_session_(session) { |
14 // The headers stream is exempt from connection level flow control. | 14 // The headers stream is exempt from connection level flow control. |
15 DisableConnectionFlowControlForThisStream(); | 15 DisableConnectionFlowControlForThisStream(); |
16 } | 16 } |
17 | 17 |
18 QuicHeadersStream::~QuicHeadersStream() {} | 18 QuicHeadersStream::~QuicHeadersStream() {} |
(...skipping 18 matching lines...) Expand all Loading... |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 void QuicHeadersStream::MaybeReleaseSequencerBuffer() { | 40 void QuicHeadersStream::MaybeReleaseSequencerBuffer() { |
41 if (spdy_session_->ShouldReleaseHeadersStreamSequencerBuffer()) { | 41 if (spdy_session_->ShouldReleaseHeadersStreamSequencerBuffer()) { |
42 sequencer()->ReleaseBufferIfEmpty(); | 42 sequencer()->ReleaseBufferIfEmpty(); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 } // namespace net | 46 } // namespace net |
OLD | NEW |