Refactor ExpansionOnNewFrameWithLastFrame out from ExpansionOnNewFrame. This new function will be used later.
PiperOrigin-RevId: 318464492
Change-Id: I37a7d4aa77350f277def804a1675e3b33d5568e4
diff --git a/quic/core/quic_packet_creator.h b/quic/core/quic_packet_creator.h
index 76d6557..ddc5e2d 100644
--- a/quic/core/quic_packet_creator.h
+++ b/quic/core/quic_packet_creator.h
@@ -190,6 +190,10 @@
// amount of expected expansion.
size_t ExpansionOnNewFrame() const;
+ // Returns the number of bytes that the packet will expand by when a new frame
+ // is going to be added. |last_frame| is the last frame of the packet.
+ size_t ExpansionOnNewFrameWithLastFrame(const QuicFrame& last_frame) const;
+
// Returns the number of bytes in the current packet, including the header,
// if serialized with the current frames. Adding a frame to the packet
// may change the serialized length of existing frames, as per the comment