| Index: net/quic/quic_connection.h
|
| diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
|
| index 6c8a2e50f91d06b31f19a74baf498c4251d67038..512d64056dfe391f9b29fa83086237c1b9bb73a4 100644
|
| --- a/net/quic/quic_connection.h
|
| +++ b/net/quic/quic_connection.h
|
| @@ -103,6 +103,9 @@ class NET_EXPORT_PRIVATE QuicConnectionVisitorInterface {
|
|
|
| // Called to ask if any handshake messages are pending in this visitor.
|
| virtual bool HasPendingHandshake() const = 0;
|
| +
|
| + // Called to ask if any streams are open in this visitor.
|
| + virtual bool HasOpenStreams() const = 0;
|
| };
|
|
|
| // Interface which gets callbacks from the QuicConnection at interesting
|
| @@ -391,6 +394,9 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| // true. Otherwise, it will return false and will reset the timeout alarm.
|
| bool CheckForTimeout();
|
|
|
| + // Sends a ping, and resets the ping alarm.
|
| + void SendPing();
|
| +
|
| // Sets up a packet with an QuicAckFrame and sends it out.
|
| void SendAck();
|
|
|
| @@ -590,6 +596,9 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| // Closes any FEC groups protecting packets before |sequence_number|.
|
| void CloseFecGroupsBefore(QuicPacketSequenceNumber sequence_number);
|
|
|
| + // Sets the ping alarm to the appropriate value, if any.
|
| + void SetPingAlarm();
|
| +
|
| QuicFramer framer_;
|
| QuicConnectionHelperInterface* helper_; // Not owned.
|
| QuicPacketWriter* writer_; // Not owned.
|
| @@ -669,6 +678,8 @@ class NET_EXPORT_PRIVATE QuicConnection
|
| scoped_ptr<QuicAlarm> resume_writes_alarm_;
|
| // An alarm that fires when the connection may have timed out.
|
| scoped_ptr<QuicAlarm> timeout_alarm_;
|
| + // An alarm that fires when a ping should be sent.
|
| + scoped_ptr<QuicAlarm> ping_alarm_;
|
|
|
| QuicConnectionVisitorInterface* visitor_;
|
| QuicConnectionDebugVisitorInterface* debug_visitor_;
|
|
|