| Index: net/quic/core/quic_crypto_server_stream.h
|
| diff --git a/net/quic/core/quic_crypto_server_stream.h b/net/quic/core/quic_crypto_server_stream.h
|
| index 4701be7a25a80bcd200bde897c892259e373059f..3f83675380aeca17a6d79a56b05536660ef31d30 100644
|
| --- a/net/quic/core/quic_crypto_server_stream.h
|
| +++ b/net/quic/core/quic_crypto_server_stream.h
|
| @@ -57,6 +57,7 @@ class QUIC_EXPORT_PRIVATE QuicCryptoServerStreamBase : public QuicCryptoStream {
|
| virtual uint8_t NumHandshakeMessagesWithServerNonces() const = 0;
|
| virtual bool UseStatelessRejectsIfPeerSupported() const = 0;
|
| virtual bool PeerSupportsStatelessRejects() const = 0;
|
| + virtual bool ZeroRttAttempted() const = 0;
|
| virtual void SetPeerSupportsStatelessRejects(bool set) = 0;
|
| virtual const CachedNetworkParameters* PreviousCachedNetworkParams()
|
| const = 0;
|
| @@ -112,6 +113,7 @@ class QUIC_EXPORT_PRIVATE QuicCryptoServerStream
|
| const CachedNetworkParameters* PreviousCachedNetworkParams() const override;
|
| bool UseStatelessRejectsIfPeerSupported() const override;
|
| bool PeerSupportsStatelessRejects() const override;
|
| + bool ZeroRttAttempted() const override;
|
| void SetPeerSupportsStatelessRejects(
|
| bool peer_supports_stateless_rejects) override;
|
| void SetPreviousCachedNetworkParams(
|
| @@ -137,6 +139,9 @@ class QUIC_EXPORT_PRIVATE QuicCryptoServerStream
|
| // before going through the parameter negotiation step.
|
| virtual void OverrideQuicConfigDefaults(QuicConfig* config);
|
|
|
| + // Returns client address used to generate and validate source address token.
|
| + virtual const QuicSocketAddress GetClientAddress();
|
| +
|
| private:
|
| friend class test::QuicCryptoServerStreamPeer;
|
|
|
| @@ -260,6 +265,11 @@ class QUIC_EXPORT_PRIVATE QuicCryptoServerStream
|
| // becomes the default.
|
| bool peer_supports_stateless_rejects_;
|
|
|
| + // True if client attempts 0-rtt handshake (which can succeed or fail). If
|
| + // stateless rejects are used, this variable will be false for the stateless
|
| + // rejected connection and true for subsequent connections.
|
| + bool zero_rtt_attempted_;
|
| +
|
| // Size of the packet containing the most recently received CHLO.
|
| QuicByteCount chlo_packet_size_;
|
|
|
|
|