Add KeyUpdateReason enum to KeyUpdate call & OnKeyUpdate callbacks.
PiperOrigin-RevId: 337886250
Change-Id: I1a8ebf0212f8c3b9a80d47bc93c243f6cd2c128c
diff --git a/quic/core/quic_framer.h b/quic/core/quic_framer.h
index f029dd1..5d9bf46 100644
--- a/quic/core/quic_framer.h
+++ b/quic/core/quic_framer.h
@@ -241,7 +241,7 @@
// Called when a Key Phase Update has been initiated. This is called for both
// locally and peer initiated key updates. If the key update was locally
// initiated, this does not indicate the peer has received the key update yet.
- virtual void OnKeyUpdate() = 0;
+ virtual void OnKeyUpdate(KeyUpdateReason reason) = 0;
// Called on the first decrypted packet in each key phase (including the
// first key phase.)
@@ -546,7 +546,7 @@
// Discard the decrypter for the previous key phase.
void DiscardPreviousOneRttKeys();
// Update the key phase.
- bool DoKeyUpdate();
+ bool DoKeyUpdate(KeyUpdateReason reason);
const QuicDecrypter* GetDecrypter(EncryptionLevel level) const;
const QuicDecrypter* decrypter() const;