Refactor QuicFramer::Get...ConnectionCloseFrameSize
This CL refactors QUicFramer::Get...ConnectionCloseFrameSize in
preparation for a following CL to add in additional IETF QUIC
CLOSE_CONNECTION functionality.
gfe-relnote: Not flag protected, refactor existing method.
PiperOrigin-RevId: 247005149
Change-Id: Ibb339a6e16f9f16c842cdbc2026563c25f93e44e
diff --git a/quic/core/quic_framer.h b/quic/core/quic_framer.h
index decb456..17a87fa 100644
--- a/quic/core/quic_framer.h
+++ b/quic/core/quic_framer.h
@@ -301,9 +301,9 @@
// Size in bytes of all reset stream frame fields.
static size_t GetRstStreamFrameSize(QuicTransportVersion version,
const QuicRstStreamFrame& frame);
- // Size in bytes of all connection close frame fields without the error
- // details and the missing packets from the enclosed ack frame.
- static size_t GetMinConnectionCloseFrameSize(
+ // Size in bytes of all connection close frame fields, including the error
+ // details.
+ static size_t GetConnectionCloseFrameSize(
QuicTransportVersion version,
const QuicConnectionCloseFrame& frame);
// Size in bytes of all GoAway frame fields without the reason phrase.