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

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: Add missing member to CurtainModeWin. 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
« no previous file with comments | « remoting/host/curtain_mode_win.cc ('k') | remoting/host/curtaining_host_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « remoting/host/curtain_mode_win.cc ('k') | remoting/host/curtaining_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698