Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index ffe08477c6ae34fdcfe7985d14da0c5bde6a2ca5..d1b3cb180700cdc0a7ffb1bc4c596c949bdcdd29 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -425,6 +425,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
// Returns true if the connection has queued packets or frames. |
bool HasQueuedData() const; |
+ // TODO(ianswett): Remove when quic_unified_timeouts is removed. |
// Sets (or resets) the idle state connection timeout. Also, checks and times |
// out the connection if network timer has expired for |timeout|. |
void SetIdleNetworkTimeout(QuicTime::Delta timeout); |
@@ -434,6 +435,12 @@ class NET_EXPORT_PRIVATE QuicConnection |
// handshake finishes. |
void SetOverallConnectionTimeout(QuicTime::Delta timeout); |
+ // Sets the overall and idle state connection timeouts. |
+ // Times out the connection if the timeout has been reached and |
+ // the quic_timeouts_only_from_alarms flag is false. |
+ void SetNetworkTimeouts(QuicTime::Delta overall_timeout, |
+ QuicTime::Delta idle_timeout); |
+ |
// If the connection has timed out, this will close the connection. |
// Otherwise, it will reschedule the timeout alarm. |
void CheckForTimeout(); |