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

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
« no previous file with comments | « remoting/protocol/connection_to_host.h ('k') | remoting/protocol/jingle_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..144c1fc93ead6c42b06815d36579d8c7c25a084d 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_;
}
« no previous file with comments | « remoting/protocol/connection_to_host.h ('k') | remoting/protocol/jingle_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698