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

Unified Diff: remoting/protocol/connection_to_host.cc

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.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index 5794c50216f15daff92d3da49b1890f40c3e2612..16893dd19c5d23d2b2906c67e0c53268674bb0d0 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -209,6 +209,12 @@ void ConnectionToHost::OnSessionRouteChange(const std::string& channel_name,
const TransportRoute& route) {
}
+void ConnectionToHost::OnSessionInactive(const std::string& channel_name,
+ bool inactive) {
+ if (channel_name == kVideoChannelName)
+ event_callback_->OnConnectionInactive(inactive);
+}
+
ConnectionToHost::State ConnectionToHost::state() const {
return state_;
}

Powered by Google App Engine
This is Rietveld 408576698