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

Side by Side Diff: net/spdy/chromium/buffered_spdy_framer.h

Issue 2974613002: Allow large response headers to buffer in HpackDecoder. (Closed)
Patch Set: naught but a nit 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 | « no previous file | net/spdy/chromium/buffered_spdy_framer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_SPDY_CHROMIUM_BUFFERED_SPDY_FRAMER_H_ 5 #ifndef NET_SPDY_CHROMIUM_BUFFERED_SPDY_FRAMER_H_
6 #define NET_SPDY_CHROMIUM_BUFFERED_SPDY_FRAMER_H_ 6 #define NET_SPDY_CHROMIUM_BUFFERED_SPDY_FRAMER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 altsvc_vector) override; 172 altsvc_vector) override;
173 void OnDataFrameHeader(SpdyStreamId stream_id, 173 void OnDataFrameHeader(SpdyStreamId stream_id,
174 size_t length, 174 size_t length,
175 bool fin) override; 175 bool fin) override;
176 void OnContinuation(SpdyStreamId stream_id, bool end) override; 176 void OnContinuation(SpdyStreamId stream_id, bool end) override;
177 bool OnUnknownFrame(SpdyStreamId stream_id, uint8_t frame_type) override; 177 bool OnUnknownFrame(SpdyStreamId stream_id, uint8_t frame_type) override;
178 178
179 // SpdyFramer methods. 179 // SpdyFramer methods.
180 size_t ProcessInput(const char* data, size_t len); 180 size_t ProcessInput(const char* data, size_t len);
181 void UpdateHeaderDecoderTableSize(uint32_t value); 181 void UpdateHeaderDecoderTableSize(uint32_t value);
182 void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes);
182 void Reset(); 183 void Reset();
183 SpdyFramer::SpdyFramerError spdy_framer_error() const; 184 SpdyFramer::SpdyFramerError spdy_framer_error() const;
184 SpdyFramer::SpdyState state() const; 185 SpdyFramer::SpdyState state() const;
185 bool MessageFullyRead(); 186 bool MessageFullyRead();
186 bool HasError(); 187 bool HasError();
187 std::unique_ptr<SpdySerializedFrame> CreateRstStream( 188 std::unique_ptr<SpdySerializedFrame> CreateRstStream(
188 SpdyStreamId stream_id, 189 SpdyStreamId stream_id,
189 SpdyErrorCode error_code) const; 190 SpdyErrorCode error_code) const;
190 std::unique_ptr<SpdySerializedFrame> CreateSettings( 191 std::unique_ptr<SpdySerializedFrame> CreateSettings(
191 const SettingsMap& values) const; 192 const SettingsMap& values) const;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 std::unique_ptr<HeaderCoalescer> coalescer_; 274 std::unique_ptr<HeaderCoalescer> coalescer_;
274 275
275 NetLogWithSource net_log_; 276 NetLogWithSource net_log_;
276 277
277 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); 278 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer);
278 }; 279 };
279 280
280 } // namespace net 281 } // namespace net
281 282
282 #endif // NET_SPDY_CHROMIUM_BUFFERED_SPDY_FRAMER_H_ 283 #endif // NET_SPDY_CHROMIUM_BUFFERED_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/chromium/buffered_spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698