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

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

Issue 2430513002: Limit QUIC uncompressed header size per stream to 16K, by default. Protected by FLAGS_quic_limit_un… (Closed)
Patch Set: Created 4 years, 2 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_protocol.h ('k') | net/quic/core/quic_spdy_stream.cc » ('j') | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // should be closed; no more data will be sent by the peer. 93 // should be closed; no more data will be sent by the peer.
94 virtual void OnStreamHeadersComplete(bool fin, size_t frame_len); 94 virtual void OnStreamHeadersComplete(bool fin, size_t frame_len);
95 95
96 // Called by the session when decompressed headers have been completely 96 // Called by the session when decompressed headers have been completely
97 // delivered to this stream. If |fin| is true, then this stream 97 // delivered to this stream. If |fin| is true, then this stream
98 // should be closed; no more data will be sent by the peer. 98 // should be closed; no more data will be sent by the peer.
99 virtual void OnStreamHeaderList(bool fin, 99 virtual void OnStreamHeaderList(bool fin,
100 size_t frame_len, 100 size_t frame_len,
101 const QuicHeaderList& header_list); 101 const QuicHeaderList& header_list);
102 102
103 // Called when the received headers are too large. By default this will
104 // reset the stream.
105 virtual void OnHeadersTooLarge();
106
103 // Called by the session when decompressed PUSH_PROMISE headers data 107 // Called by the session when decompressed PUSH_PROMISE headers data
104 // is received for this stream. 108 // is received for this stream.
105 // May be called multiple times, with each call providing additional headers 109 // May be called multiple times, with each call providing additional headers
106 // data until OnPromiseHeadersComplete is called. 110 // data until OnPromiseHeadersComplete is called.
107 virtual void OnPromiseHeaders(base::StringPiece headers_data); 111 virtual void OnPromiseHeaders(base::StringPiece headers_data);
108 112
109 // Called by the session when decompressed push promise headers have 113 // Called by the session when decompressed push promise headers have
110 // been completely delivered to this stream. 114 // been completely delivered to this stream.
111 virtual void OnPromiseHeadersComplete(QuicStreamId promised_id, 115 virtual void OnPromiseHeadersComplete(QuicStreamId promised_id,
112 size_t frame_len); 116 size_t frame_len);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 std::string decompressed_trailers_; 274 std::string decompressed_trailers_;
271 // The parsed trailers received from the peer. 275 // The parsed trailers received from the peer.
272 SpdyHeaderBlock received_trailers_; 276 SpdyHeaderBlock received_trailers_;
273 277
274 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); 278 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream);
275 }; 279 };
276 280
277 } // namespace net 281 } // namespace net
278 282
279 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ 283 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_protocol.h ('k') | net/quic/core/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698