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

Unified Diff: net/quic/core/quic_stream_sequencer_buffer.h

Issue 2566943003: rel-note: automated rollback of internal change 138108562 (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_stream_sequencer_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_stream_sequencer_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698