| Index: remoting/host/curtaining_host_observer.h
|
| diff --git a/remoting/host/curtaining_host_observer.h b/remoting/host/curtaining_host_observer.h
|
| index 92c740add7f070ff85f82443a44f9cffc136f82e..a952344a4265304eba43ae2a1e91430b730ffebc 100644
|
| --- a/remoting/host/curtaining_host_observer.h
|
| +++ b/remoting/host/curtaining_host_observer.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef REMOTING_HOST_CURTAINING_HOST_OBSERVER_H_
|
| #define REMOTING_HOST_CURTAINING_HOST_OBSERVER_H_
|
|
|
| +#include <set>
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| @@ -24,13 +25,19 @@ class CurtainingHostObserver : public HostStatusObserver {
|
| scoped_refptr<ChromotingHost> host);
|
| virtual ~CurtainingHostObserver();
|
|
|
| - // From HostStatusObserver.
|
| + // Enables/disables curtaining when one or more clients are connected.
|
| + // Takes immediate effect if clients are already connected.
|
| + void SetEnableCurtaining(bool enable);
|
| +
|
| + // HostStatusObserver interface.
|
| virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
|
| virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
|
|
|
| private:
|
| CurtainMode* curtain_;
|
| scoped_refptr<ChromotingHost> host_;
|
| + std::set<std::string> active_clients_;
|
| + bool enable_curtaining_;
|
| };
|
|
|
| } // namespace remoting
|
|
|