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

Side by Side Diff: net/quic/quic_spdy_stream.h

Issue 1529953003: Make QuicSpdyStream::WriteTrailers virtual for tests. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110015448
Patch Set: get newly added files from upstream Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // The base class for streams which deliver data to/from an application. 5 // The base class for streams which deliver data to/from an application.
6 // In each direction, the data on such a stream first contains compressed 6 // In each direction, the data on such a stream first contains compressed
7 // headers then body data. 7 // headers then body data.
8 8
9 #ifndef NET_QUIC_QUIC_SPDY_STREAM_H_ 9 #ifndef NET_QUIC_QUIC_SPDY_STREAM_H_
10 #define NET_QUIC_QUIC_SPDY_STREAM_H_ 10 #define NET_QUIC_QUIC_SPDY_STREAM_H_
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void OnStreamReset(const QuicRstStreamFrame& frame) override; 92 void OnStreamReset(const QuicRstStreamFrame& frame) override;
93 93
94 // Writes the headers contained in |header_block| to the dedicated 94 // Writes the headers contained in |header_block| to the dedicated
95 // headers stream. 95 // headers stream.
96 virtual size_t WriteHeaders(const SpdyHeaderBlock& header_block, 96 virtual size_t WriteHeaders(const SpdyHeaderBlock& header_block,
97 bool fin, 97 bool fin,
98 QuicAckListenerInterface* ack_notifier_delegate); 98 QuicAckListenerInterface* ack_notifier_delegate);
99 99
100 // Writes the trailers contained in |trailer_block| to the dedicated 100 // Writes the trailers contained in |trailer_block| to the dedicated
101 // headers stream. Trailers will always have the FIN set. 101 // headers stream. Trailers will always have the FIN set.
102 size_t WriteTrailers(SpdyHeaderBlock trailer_block, 102 virtual size_t WriteTrailers(SpdyHeaderBlock trailer_block,
103 QuicAckListenerInterface* ack_notifier_delegate); 103 QuicAckListenerInterface* ack_notifier_delegate);
104 104
105 // Marks |bytes_consumed| of the headers data as consumed. 105 // Marks |bytes_consumed| of the headers data as consumed.
106 void MarkHeadersConsumed(size_t bytes_consumed); 106 void MarkHeadersConsumed(size_t bytes_consumed);
107 107
108 // Marks |bytes_consumed| of the trailers data as consumed. 108 // Marks |bytes_consumed| of the trailers data as consumed.
109 void MarkTrailersConsumed(size_t bytes_consumed); 109 void MarkTrailersConsumed(size_t bytes_consumed);
110 110
111 // This block of functions wraps the sequencer's functions of the same 111 // This block of functions wraps the sequencer's functions of the same
112 // name. These methods return uncompressed data until that has 112 // name. These methods return uncompressed data until that has
113 // been fully processed. Then they simply delegate to the sequencer. 113 // been fully processed. Then they simply delegate to the sequencer.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Contains a copy of the decompressed trailers until they are consumed 172 // Contains a copy of the decompressed trailers until they are consumed
173 // via ProcessData or Readv. 173 // via ProcessData or Readv.
174 std::string decompressed_trailers_; 174 std::string decompressed_trailers_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); 176 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream);
177 }; 177 };
178 178
179 } // namespace net 179 } // namespace net
180 180
181 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ 181 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698