Internal QUICHE change
PiperOrigin-RevId: 317961822
Change-Id: I82e3c50088a3c6b8f158bc1eb096b32c3d4a92aa
diff --git a/quic/core/quic_framer.h b/quic/core/quic_framer.h
index 2fc2037..8e63fc2 100644
--- a/quic/core/quic_framer.h
+++ b/quic/core/quic_framer.h
@@ -218,6 +218,9 @@
// Called when a handshake done frame has been parsed.
virtual bool OnHandshakeDoneFrame(const QuicHandshakeDoneFrame& frame) = 0;
+ // Called when an AckFrequencyFrame has been parsed.
+ virtual bool OnAckFrequencyFrame(const QuicAckFrequencyFrame& frame) = 0;
+
// Called when a packet has been completely processed.
virtual void OnPacketComplete() = 0;
@@ -321,6 +324,8 @@
// Size in bytes of all reset stream frame fields.
static size_t GetRstStreamFrameSize(QuicTransportVersion version,
const QuicRstStreamFrame& frame);
+ // Size in bytes of all ack frenquency frame fields.
+ static size_t GetAckFrequencyFrameSize(const QuicAckFrequencyFrame& frame);
// Size in bytes of all connection close frame fields, including the error
// details.
static size_t GetConnectionCloseFrameSize(
@@ -489,6 +494,8 @@
bool last_frame_in_packet,
QuicDataWriter* writer);
bool AppendCryptoFrame(const QuicCryptoFrame& frame, QuicDataWriter* writer);
+ bool AppendAckFrequencyFrame(const QuicAckFrequencyFrame& frame,
+ QuicDataWriter* writer);
// SetDecrypter sets the primary decrypter, replacing any that already exists.
// If an alternative decrypter is in place then the function DCHECKs. This is
@@ -917,7 +924,8 @@
bool ProcessCryptoFrame(QuicDataReader* reader,
EncryptionLevel encryption_level,
QuicCryptoFrame* frame);
-
+ bool ProcessAckFrequencyFrame(QuicDataReader* reader,
+ QuicAckFrequencyFrame* frame);
// IETF frame appending methods. All methods append the type byte as well.
bool AppendIetfStreamFrame(const QuicStreamFrame& frame,
bool last_frame_in_packet,