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

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

Issue 2963763003: In QUIC, send data is copied to streams rather than frames. Protected by FLAGS_quic_reloadable_flag… (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « net/quic/core/quic_spdy_stream_test.cc ('k') | net/quic/core/quic_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_stream.h
diff --git a/net/quic/core/quic_stream.h b/net/quic/core/quic_stream.h
index 6c4d831adf228c617759819a7a6459becab62893..a8bff46d130aadc12535275668d8c3552087f4e3 100644
--- a/net/quic/core/quic_stream.h
+++ b/net/quic/core/quic_stream.h
@@ -27,6 +27,7 @@
#include "net/quic/core/quic_flow_controller.h"
#include "net/quic/core/quic_iovector.h"
#include "net/quic/core/quic_packets.h"
+#include "net/quic/core/quic_stream_send_buffer.h"
#include "net/quic/core/quic_stream_sequencer.h"
#include "net/quic/core/quic_types.h"
#include "net/quic/core/stream_notifier_interface.h"
@@ -196,6 +197,17 @@ class QUIC_EXPORT_PRIVATE QuicStream : public StreamNotifierInterface {
// Adds random padding after the fin is consumed for this stream.
void AddRandomPaddingAfterFin();
+ // Save |data_length| of data starts at |iov_offset| in |iov| to send buffer.
+ void SaveStreamData(QuicIOVector iov,
+ size_t iov_offset,
+ QuicStreamOffset offset,
+ QuicByteCount data_length);
+
+ // Write |data_length| of data starts at |offset| from send buffer.
+ bool WriteStreamData(QuicStreamOffset offset,
+ QuicByteCount data_length,
+ QuicDataWriter* writer);
+
// StreamNotifierInterface methods:
void OnStreamFrameAcked(const QuicStreamFrame& frame,
QuicTime::Delta ack_delay_time) override;
@@ -350,6 +362,10 @@ class QUIC_EXPORT_PRIVATE QuicStream : public StreamNotifierInterface {
// are acked.
QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener_;
+ // Send buffer of this stream. Send buffer is cleaned up when data gets acked
+ // or discarded.
+ QuicStreamSendBuffer send_buffer_;
+
DISALLOW_COPY_AND_ASSIGN(QuicStream);
};
« no previous file with comments | « net/quic/core/quic_spdy_stream_test.cc ('k') | net/quic/core/quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698