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

Side by Side Diff: net/quic/core/quic_stream_frame_data_producer.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, 5 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_stream.cc ('k') | net/quic/core/quic_stream_send_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_CORE_QUIC_STREAM_FRAME_DATA_PRODUCER_H_
6 #define NET_QUIC_CORE_QUIC_STREAM_FRAME_DATA_PRODUCER_H_
7
8 #include "net/quic/core/quic_iovector.h"
9 #include "net/quic/core/quic_types.h"
10
11 namespace net {
12
13 class QuicDataWriter;
14
15 // Pure virtual class to save and retrieve stream data.
16 class QUIC_EXPORT_PRIVATE QuicStreamFrameDataProducer {
17 public:
18 virtual ~QuicStreamFrameDataProducer() {}
19
20 // Save |data_length| data starts at |iov_offset| in |iov|.
21 virtual void SaveStreamData(QuicStreamId id,
22 QuicIOVector iov,
23 size_t iov_offset,
24 QuicStreamOffset offset,
25 QuicByteCount data_length) = 0;
26
27 // Let |writer| write |data_length| data with |offset| of stream |id|. Returns
28 // false when the writing fails either because stream is closed or
29 // corresponding data is failed to be retrieved. This method allows writing a
30 // single stream frame from data that spans multiple buffers.
31 virtual bool WriteStreamData(QuicStreamId id,
32 QuicStreamOffset offset,
33 QuicByteCount data_length,
34 QuicDataWriter* writer) = 0;
35 };
36
37 } // namespace net
38
39 #endif // NET_QUIC_CORE_QUIC_STREAM_FRAME_DATA_PRODUCER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_stream.cc ('k') | net/quic/core/quic_stream_send_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698