Remove QuicPacketCreator::AddSavedFrame() and make QuicPacketCreator::AddFrame() public.
gfe-relnote: no behavior change. Not protected.
PiperOrigin-RevId: 281456340
Change-Id: I53bccacca15c04573e3b3fca17f591414e997ba9
diff --git a/quic/core/quic_packet_creator.h b/quic/core/quic_packet_creator.h
index 7460502..8e066a9 100644
--- a/quic/core/quic_packet_creator.h
+++ b/quic/core/quic_packet_creator.h
@@ -195,8 +195,7 @@
// Tries to add |frame| to the packet creator's list of frames to be
// serialized. If the frame does not fit into the current packet, flushes the
// packet and returns false.
- bool AddSavedFrame(const QuicFrame& frame,
- TransmissionType transmission_type);
+ bool AddFrame(const QuicFrame& frame, TransmissionType transmission_type);
// Identical to AddSavedFrame, but allows the frame to be padded.
bool AddPaddedSavedFrame(const QuicFrame& frame,
@@ -446,11 +445,6 @@
void FillPacketHeader(QuicPacketHeader* header);
- // Adds a |frame| if there is space and returns false and flushes all pending
- // frames if there isn't room.
- bool AddFrame(const QuicFrame& frame,
- TransmissionType transmission_type);
-
// Adds a padding frame to the current packet (if there is space) when (1)
// current packet needs full padding or (2) there are pending paddings.
void MaybeAddPadding();