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

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

Issue 2328633004: lazy allocation and early release memory in QuicStreamSequencerBuffer. Protected by --quic_reduce_s… (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_stream_sequencer.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.h
diff --git a/net/quic/core/quic_stream_sequencer.h b/net/quic/core/quic_stream_sequencer.h
index 16a6ecaafff7801b3432d917f035d414c985b1b3..032616ccba16ecec17974ad0e5ecabf2fd15ea93 100644
--- a/net/quic/core/quic_stream_sequencer.h
+++ b/net/quic/core/quic_stream_sequencer.h
@@ -79,6 +79,9 @@ class NET_EXPORT_PRIVATE QuicStreamSequencer {
// automatically when the FIN is consumed (which may be immediately).
void StopReading();
+ // Free the memory of underlying buffer.
+ void ReleaseBuffer();
+
// Number of bytes in the buffer right now.
size_t NumBytesBuffered() const;
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_stream_sequencer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698