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

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
« no previous file with comments | « remoting/protocol/session.h ('k') | remoting/webapp/client_plugin.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/transport.h
diff --git a/remoting/protocol/transport.h b/remoting/protocol/transport.h
index 251724cda28e8a19b3bf4d1189b43e74e6f19f52..fe11c080818e6517a4e8536baa6b92c27396b4a8 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
+ // |ready| is set to false incoming and outgoing data may be
+ // delayed until connection goes back to the active state, at
+ // which point that method is called again with |ready| set to
+ // true. This is useful for UI indication of temporarily broken
+ // connections.
+ virtual void OnTransportReady(Transport* transport, bool ready) = 0;
+
// Called when the transport is about to be deleted.
virtual void OnTransportDeleted(Transport* transport) = 0;
};
« no previous file with comments | « remoting/protocol/session.h ('k') | remoting/webapp/client_plugin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698