In QUIC, change OnOneRttKeysAvailable() to OnTlsHandshakeFinished().
There are 2 advantages:
1. The new name explicitly tells applications that the handshake is finished, which is what they care about.
2. Subclass overrides will know clearly this method is only in TLS QUIC.
No behavior change. not protected.
PiperOrigin-RevId: 327141938
Change-Id: Ieb43c32486f625116cad8246af91ba28c41b41ac
diff --git a/quic/core/tls_server_handshaker.cc b/quic/core/tls_server_handshaker.cc
index 66d8cc3..46e4b81 100644
--- a/quic/core/tls_server_handshaker.cc
+++ b/quic/core/tls_server_handshaker.cc
@@ -392,7 +392,7 @@
state_ = STATE_HANDSHAKE_COMPLETE;
one_rtt_keys_available_ = true;
- handshaker_delegate()->OnOneRttKeysAvailable();
+ handshaker_delegate()->OnTlsHandshakeComplete();
handshaker_delegate()->DiscardOldEncryptionKey(ENCRYPTION_HANDSHAKE);
handshaker_delegate()->DiscardOldDecryptionKey(ENCRYPTION_HANDSHAKE);
handshaker_delegate()->DiscardOldDecryptionKey(ENCRYPTION_ZERO_RTT);