Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: remoting/protocol/transport.h

Issue 10692179: Propagate connection state from networking layer to UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/transport.h
diff --git a/remoting/protocol/transport.h b/remoting/protocol/transport.h
index 251724cda28e8a19b3bf4d1189b43e74e6f19f52..9cc013e0830f6ca1d6e8d028e5b325b9e27bac13 100644
--- a/remoting/protocol/transport.h
+++ b/remoting/protocol/transport.h
@@ -81,6 +81,14 @@ class Transport : public base::NonThreadSafe {
virtual void OnTransportRouteChange(Transport* transport,
const TransportRoute& route) = 0;
+ // Called when the transport inactivity state changes. When
+ // |inactive| is set to true incoming and outgoing data may be
+ // delayed until connection goes back to the active state, at
+ // which point that method is called again with |inactive| set to
+ // false. This is useful for UI indication of temporarily broken
+ // connections.
+ virtual void OnTransportInactive(Transport* transport, bool inactive) = 0;
+
// Called when the transport is about to be deleted.
virtual void OnTransportDeleted(Transport* transport) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698