Automated g4 rollback of changelist 257189926.
*** Reason for rollback ***
Breaks Chromium
*** Original change description ***
QuicSpdySession header size limit related cleanup.
Rename QuicSpdySession::SpdyFramerVisitor::set_max_uncompressed_header_bytes()
to set_max_header_list_size() to match the name of the QuicHeaderList method it
calls.
Inline set_max_uncompressed_header_bytes() and
set_max_decode_buffer_size_bytes() since they are used only once.
gfe-relnote: n/a, no functional change.
***
PiperOrigin-RevId: 257303500
Change-Id: Id5ee14268d09efe69c1cb242905fd24666478471
diff --git a/quic/core/http/quic_spdy_session.h b/quic/core/http/quic_spdy_session.h
index d5413b3..0a009bf 100644
--- a/quic/core/http/quic_spdy_session.h
+++ b/quic/core/http/quic_spdy_session.h
@@ -246,6 +246,16 @@
bool IsConnected() { return connection()->connected(); }
+ // Sets how much encoded data the hpack decoder of h2_deframer_ is willing to
+ // buffer.
+ void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes) {
+ h2_deframer_.GetHpackDecoder()->set_max_decode_buffer_size_bytes(
+ max_decode_buffer_size_bytes);
+ }
+
+ void set_max_uncompressed_header_bytes(
+ size_t set_max_uncompressed_header_bytes);
+
private:
friend class test::QuicSpdySessionPeer;