Rename HandshakerDelegate to HandshakerInterface in QuicCryptoServerStream
and QuicCryptoClientStream to make it clear that this is an interface which
defines the handshaker as opposed to a delegate of the handshaker (Which is
defined by the similarly named HandshakerDelegateInterface).
gfe-relnote: n/a - Rename only
PiperOrigin-RevId: 286924355
Change-Id: Ifb31cf8f7afd6aa0560c599fc28cbf9c9f3655b4
diff --git a/quic/core/quic_crypto_client_stream.h b/quic/core/quic_crypto_client_stream.h
index 3f9b0af..cf1d3e9 100644
--- a/quic/core/quic_crypto_client_stream.h
+++ b/quic/core/quic_crypto_client_stream.h
@@ -62,20 +62,20 @@
// the client a fallback ServerConfig.
static const int kMaxClientHellos = 4;
- // QuicCryptoClientStream creates a HandshakerDelegate at construction time
+ // QuicCryptoClientStream creates a HandshakerInterface at construction time
// based on the QuicTransportVersion of the connection. Different
- // HandshakerDelegates provide implementations of different crypto handshake
+ // HandshakerInterfaces provide implementations of different crypto handshake
// protocols. Currently QUIC crypto is the only protocol implemented; a future
- // HandshakerDelegate will use TLS as the handshake protocol.
+ // HandshakerInterface will use TLS as the handshake protocol.
// QuicCryptoClientStream delegates all of its public methods to its
- // HandshakerDelegate.
+ // HandshakerInterface.
//
// This setup of the crypto stream delegating its implementation to the
// handshaker results in the handshaker reading and writing bytes on the
// crypto stream, instead of the handshaker passing the stream bytes to send.
- class QUIC_EXPORT_PRIVATE HandshakerDelegate {
+ class QUIC_EXPORT_PRIVATE HandshakerInterface {
public:
- virtual ~HandshakerDelegate() {}
+ virtual ~HandshakerInterface() {}
// Performs a crypto handshake with the server. Returns true if the
// connection is still connected.
@@ -167,12 +167,12 @@
std::string chlo_hash() const;
protected:
- void set_handshaker(std::unique_ptr<HandshakerDelegate> handshaker) {
+ void set_handshaker(std::unique_ptr<HandshakerInterface> handshaker) {
handshaker_ = std::move(handshaker);
}
private:
- std::unique_ptr<HandshakerDelegate> handshaker_;
+ std::unique_ptr<HandshakerInterface> handshaker_;
};
} // namespace quic