| Index: net/quic/quic_connection.h
|
| diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
|
| index f84be9038fbb2a2fde3da8767470309b3dc3b5fe..051d109a3417224986e9d43ee4cd197e4fc4afed 100644
|
| --- a/net/quic/quic_connection.h
|
| +++ b/net/quic/quic_connection.h
|
| @@ -389,6 +389,10 @@ class NET_EXPORT_PRIVATE QuicConnection
|
|
|
| // Set the packet writer.
|
| void SetQuicPacketWriter(QuicPacketWriter* writer, bool owns_writer) {
|
| + DCHECK(writer != nullptr);
|
| + if (writer_ != nullptr && owns_writer_) {
|
| + delete writer_;
|
| + }
|
| writer_ = writer;
|
| owns_writer_ = owns_writer;
|
| }
|
| @@ -505,7 +509,11 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| // Otherwise, it will reschedule the timeout alarm.
|
| void CheckForTimeout();
|
|
|
| - // Sends a ping, and resets the ping alarm.
|
| + // Called when the ping alarm fires. Causes a ping frame to be sent only
|
| + // if the retransmission alarm is not running.
|
| + void OnPingTimeout();
|
| +
|
| + // Sends a ping frame.
|
| void SendPing();
|
|
|
| // Sets up a packet with an QuicAckFrame and sends it out.
|
|
|