Add IsResumption method to QUIC client handshakers
gfe-relnote: no behavior change: adding unused method
PiperOrigin-RevId: 279141655
Change-Id: Icfe08baf904b37a702c73c071334b11bb6cf2234
diff --git a/quic/core/quic_crypto_client_stream.h b/quic/core/quic_crypto_client_stream.h
index 89f0d2e..d175ece 100644
--- a/quic/core/quic_crypto_client_stream.h
+++ b/quic/core/quic_crypto_client_stream.h
@@ -35,6 +35,13 @@
// than the number of round-trips needed for the handshake.
virtual int num_sent_client_hellos() const = 0;
+ // Returns true if the handshake performed was a resumption instead of a full
+ // handshake. Resumption only makes sense for TLS handshakes - there is no
+ // concept of resumption for QUIC crypto even though it supports a 0-RTT
+ // handshake. This function only returns valid results once the handshake is
+ // complete.
+ virtual bool IsResumption() const = 0;
+
// The number of server config update messages received by the
// client. Does not count update messages that were received prior
// to handshake confirmation.
@@ -79,6 +86,13 @@
// than the number of round-trips needed for the handshake.
virtual int num_sent_client_hellos() const = 0;
+ // Returns true if the handshake performed was a resumption instead of a
+ // full handshake. Resumption only makes sense for TLS handshakes - there is
+ // no concept of resumption for QUIC crypto even though it supports a 0-RTT
+ // handshake. This function only returns valid results once the handshake is
+ // complete.
+ virtual bool IsResumption() const = 0;
+
// The number of server config update messages received by the
// client. Does not count update messages that were received prior
// to handshake confirmation.
@@ -137,6 +151,7 @@
// From QuicCryptoClientStreamBase
bool CryptoConnect() override;
int num_sent_client_hellos() const override;
+ bool IsResumption() const override;
int num_scup_messages_received() const override;