summaryrefslogtreecommitdiffstats
path: root/remoting/host/host_status_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/host_status_observer.h')
-rw-r--r--remoting/host/host_status_observer.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/remoting/host/host_status_observer.h b/remoting/host/host_status_observer.h
index 132dc98..ccd03a2 100644
--- a/remoting/host/host_status_observer.h
+++ b/remoting/host/host_status_observer.h
@@ -14,27 +14,28 @@ namespace protocol {
class ConnectionToClient;
}
+// Interface for host status observer. All methods are invoked on the
+// network thread.
class HostStatusObserver {
public:
HostStatusObserver() { }
virtual ~HostStatusObserver() { }
- // Called on the network thread when status of the XMPP changes.
+ // Called when status of the signalling channel changes.
virtual void OnSignallingConnected(SignalStrategy* signal_strategy,
const std::string& full_jid) = 0;
virtual void OnSignallingDisconnected() = 0;
- // Called on the network thread when an unauthorized user attempts
- // to connect to the host.
+ // Called when an unauthorized user attempts to connect to the host.
virtual void OnAccessDenied() = 0;
- // Called on the main thread when a client authenticates, or disconnects.
- // The observer must not tear-down ChromotingHost state on receipt of
- // this callback; it is purely informational.
+ // Called when a client authenticates, or disconnects. Observers
+ // must not tear-down ChromotingHost state on receipt of this
+ // callback; it is purely informational.
virtual void OnClientAuthenticated(const std::string& jid) = 0;
virtual void OnClientDisconnected(const std::string& jid) = 0;
- // Called on the main thread when the host shuts down.
+ // Called when the host shuts down.
virtual void OnShutdown() = 0;
};