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

Unified Diff: remoting/host/host_status_observer.h

Issue 7547001: Propagate connected user to web app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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/host/host_status_observer.h
diff --git a/remoting/host/host_status_observer.h b/remoting/host/host_status_observer.h
index fc158ec73984439642fa73a6ee3a12911bbe87da..3de73fde6ed0216e66f10f8df2b9622594679649 100644
--- a/remoting/host/host_status_observer.h
+++ b/remoting/host/host_status_observer.h
@@ -8,9 +8,12 @@
#include <string>
namespace remoting {
-
class SignalStrategy;
+namespace protocol {
+class ConnectionToClient;
+}
+
class HostStatusObserver {
public:
HostStatusObserver() { }
@@ -28,7 +31,10 @@ class HostStatusObserver {
// 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.
- virtual void OnAuthenticatedClientsChanged(int authenticated_clients) = 0;
+ virtual void OnClientAuthenticated(
+ remoting::protocol::ConnectionToClient* client) = 0;
+ virtual void OnClientDisconnected(
+ remoting::protocol::ConnectionToClient* client) = 0;
// Called on the main thread when the host shuts down.
virtual void OnShutdown() = 0;

Powered by Google App Engine
This is Rietveld 408576698