| Index: net/quic/core/quic_stream_sequencer_buffer.h
|
| diff --git a/net/quic/core/quic_stream_sequencer_buffer.h b/net/quic/core/quic_stream_sequencer_buffer.h
|
| index f4c55454e4e5ddaf885c47f879062c6fef7f69b8..22d2bebea1b5d51a8da7fc6a805d2c5d6c7a4ae0 100644
|
| --- a/net/quic/core/quic_stream_sequencer_buffer.h
|
| +++ b/net/quic/core/quic_stream_sequencer_buffer.h
|
| @@ -168,6 +168,10 @@ class QUIC_EXPORT_PRIVATE QuicStreamSequencerBuffer {
|
| // Count how many bytes are in buffer at this moment.
|
| size_t BytesBuffered() const;
|
|
|
| + bool reduce_sequencer_buffer_memory_life_time() const {
|
| + return reduce_sequencer_buffer_memory_life_time_;
|
| + }
|
| +
|
| private:
|
| friend class test::QuicStreamSequencerBufferPeer;
|
|
|
| @@ -237,6 +241,10 @@ class QUIC_EXPORT_PRIVATE QuicStreamSequencerBuffer {
|
| // Contains Gaps which represents currently missing data.
|
| std::list<Gap> gaps_;
|
|
|
| + // If true, allocate buffer memory upon the first frame arrival and release
|
| + // the memory when stream is read closed.
|
| + bool reduce_sequencer_buffer_memory_life_time_;
|
| +
|
| // An ordered, variable-length list of blocks, with the length limited
|
| // such that the number of blocks never exceeds blocks_count_.
|
| // Each list entry can hold up to kBlockSizeBytes bytes.
|
|
|