summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_host.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 05:00:32 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 05:00:32 +0000
commita04494cb170366bdf8be44c33e76f6e6ab98ab7b (patch)
tree985b82ae63b0802eccc75d86c906827da98b8c62 /remoting/protocol/connection_to_host.cc
parent2c0b4de6127ff608a840e6533d3286fb22f5412a (diff)
downloadchromium_src-a04494cb170366bdf8be44c33e76f6e6ab98ab7b.zip
chromium_src-a04494cb170366bdf8be44c33e76f6e6ab98ab7b.tar.gz
chromium_src-a04494cb170366bdf8be44c33e76f6e6ab98ab7b.tar.bz2
Show connection state in the Chromoting client UI.
Now screen is desaturated when we get notification that video channel is not working. BUG=131411 Review URL: https://chromiumcodereview.appspot.com/10692179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_host.cc')
-rw-r--r--remoting/protocol/connection_to_host.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index 5794c50..144c1fc 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -209,6 +209,17 @@ void ConnectionToHost::OnSessionRouteChange(const std::string& channel_name,
const TransportRoute& route) {
}
+void ConnectionToHost::OnSessionChannelReady(const std::string& channel_name,
+ bool ready) {
+ if (ready) {
+ not_ready_channels_.erase(channel_name);
+ } else if (!ready) {
+ not_ready_channels_.insert(channel_name);
+ }
+
+ event_callback_->OnConnectionReady(ready);
+}
+
ConnectionToHost::State ConnectionToHost::state() const {
return state_;
}