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

Unified Diff: remoting/protocol/session.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/libjingle_transport_factory.cc ('k') | remoting/protocol/transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session.h
diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
index 3137c3ea6307ec513b12f74756ba20f1d1970290..91483187d341faa7cabbb1c5056c4f6ede429fb1 100644
--- a/remoting/protocol/session.h
+++ b/remoting/protocol/session.h
@@ -66,6 +66,12 @@ class Session : public base::NonThreadSafe {
// handler of this event.
virtual void OnSessionRouteChange(const std::string& channel_name,
const TransportRoute& route) = 0;
+
+ // Called when ready state on one of the channels changes. See
+ // comments in transport.h for explanation on what this state
+ // means and how it can used.
+ virtual void OnSessionChannelReady(const std::string& channel_name,
+ bool ready) {}
};
// TODO(sergeyu): Specify connection error code when channel
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | remoting/protocol/transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698