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

Unified Diff: remoting/protocol/connection_to_host.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/connection_to_host.h
diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h
index 4eb7d15251bd1fb7eec757f06130597658f94cf2..d064b64bf5a47171fc67c6cf7a6ee7e0eadc3b6f 100644
--- a/remoting/protocol/connection_to_host.h
+++ b/remoting/protocol/connection_to_host.h
@@ -64,6 +64,9 @@ class ConnectionToHost : public SignalStrategy::Listener,
// Called when state of the connection changes.
virtual void OnConnectionState(State state, ErrorCode error) = 0;
+
+ // Called to indicate inactive connection.
+ virtual void OnConnectionInactive(bool inactive) = 0;
};
ConnectionToHost(bool allow_nat_traversal);
@@ -104,6 +107,8 @@ class ConnectionToHost : public SignalStrategy::Listener,
virtual void OnSessionStateChange(Session::State state) OVERRIDE;
virtual void OnSessionRouteChange(const std::string& channel_name,
const TransportRoute& route) OVERRIDE;
+ virtual void OnSessionInactive(const std::string& channel_name,
+ bool inactive) OVERRIDE;
// Return the current state of ConnectionToHost.
State state() const;

Powered by Google App Engine
This is Rietveld 408576698