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

Unified Diff: remoting/host/curtaining_host_observer.h

Issue 11275178: Enforce the RemoteAccessHostRequireCurtain policy on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/curtaining_host_observer.h
diff --git a/remoting/host/curtaining_host_observer.h b/remoting/host/curtaining_host_observer.h
index 92c740add7f070ff85f82443a44f9cffc136f82e..7ab2d58119cb718767b84f1478dd3a88c84e5fd7 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/disabled curtaining when one or more clients are connected.
Jamie 2012/11/07 00:27:49 Nit: s/disabled/disables/
Wez 2012/11/07 02:37:32 Done.
+ // Takes immediate effect if clients are already connected.
+ void SetEnableCurtaining(bool enable);
Jamie 2012/11/07 00:27:49 Check with Renato, or see his previous CL around c
rmsousa 2012/11/07 00:33:25 Having it here is fine, as long as there's another
+
+ // 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

Powered by Google App Engine
This is Rietveld 408576698