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

Unified Diff: net/quic/core/quic_connection.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/frames/quic_stream_frame.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_connection.h
diff --git a/net/quic/core/quic_connection.h b/net/quic/core/quic_connection.h
index 4503c6c5ff87062281ec1f266ddc62f6797e1b2a..4d081ccfd6bd148b6e491da434b1b4a739734e84 100644
--- a/net/quic/core/quic_connection.h
+++ b/net/quic/core/quic_connection.h
@@ -160,6 +160,19 @@ class QUIC_EXPORT_PRIVATE QuicConnectionVisitorInterface {
// Called to ask if any streams are open in this visitor, excluding the
// reserved crypto and headers stream.
virtual bool HasOpenDynamicStreams() const = 0;
+
+ // Save |data_length| data starts at |iov_offset| in |iov|.
+ virtual void SaveStreamData(QuicStreamId id,
+ QuicIOVector iov,
+ size_t iov_offset,
+ QuicStreamOffset offset,
+ QuicByteCount data_length) = 0;
+
+ // Write |data_length| data with |offset| of stream |id| to |writer|.
+ virtual bool WriteStreamData(QuicStreamId id,
+ QuicStreamOffset offset,
+ QuicByteCount data_length,
+ QuicDataWriter* writer) = 0;
};
// Interface which gets callbacks from the QuicConnection at interesting
@@ -464,6 +477,17 @@ class QUIC_EXPORT_PRIVATE QuicConnection
// QuicPacketCreator::DelegateInterface
void OnSerializedPacket(SerializedPacket* packet) override;
+ // QuicStreamFrameDataProducer methods:
+ void SaveStreamData(QuicStreamId id,
+ QuicIOVector iov,
+ size_t iov_offset,
+ QuicStreamOffset offset,
+ QuicByteCount data_length) override;
+ bool WriteStreamData(QuicStreamId id,
+ QuicStreamOffset offset,
+ QuicByteCount data_length,
+ QuicDataWriter* writer) override;
+
// QuicSentPacketManager::NetworkChangeVisitor
void OnCongestionChange() override;
void OnPathDegrading() override;
@@ -662,6 +686,11 @@ class QUIC_EXPORT_PRIVATE QuicConnection
// Sets the stream notifer on the SentPacketManager.
void SetStreamNotifier(StreamNotifierInterface* stream_notifier);
+ // Enable/disable delegate saves data in PacketCreator.
+ // TODO(fayang): Remove this method when deprecating
+ // quic_reloadable_flag_quic_stream_owns_data.
+ void SetDelegateSavesData(bool delegate_saves_data);
+
// Return the name of the cipher of the primary decrypter of the framer.
const char* cipher_name() const { return framer_.decrypter()->cipher_name(); }
// Return the id of the cipher of the primary decrypter of the framer.
« no previous file with comments | « net/quic/core/frames/quic_stream_frame.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698