Index: net/quic/quic_sent_packet_manager.h |
diff --git a/net/quic/quic_sent_packet_manager.h b/net/quic/quic_sent_packet_manager.h |
index 1bedf5afa67778951d5d6d8e2e7ef53bd6d57906..3ace0143c1c81c6cfcdd8eee495353aeea1eb7af 100644 |
--- a/net/quic/quic_sent_packet_manager.h |
+++ b/net/quic/quic_sent_packet_manager.h |
@@ -111,6 +111,8 @@ class NET_EXPORT_PRIVATE QuicSentPacketManager { |
virtual void SetFromConfig(const QuicConfig& config); |
+ void SetHandshakeConfirmed() { handshake_confirmed_ = true; } |
+ |
// Called when a new packet is serialized. If the packet contains |
// retransmittable data, it will be added to the unacked packet map. |
void OnSerializedPacket(const SerializedPacket& serialized_packet); |
@@ -362,6 +364,12 @@ class NET_EXPORT_PRIVATE QuicSentPacketManager { |
SendAlgorithmInterface::CongestionMap packets_acked_; |
SendAlgorithmInterface::CongestionMap packets_lost_; |
+ // Set to true after the crypto handshake has successfully completed. After |
+ // this is true we no longer use HANDSHAKE_MODE, and further frames sent on |
+ // the crypto stream (i.e. SCUP messages) are treated like normal |
+ // retransmittable frames. |
+ bool handshake_confirmed_; |
+ |
DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
}; |