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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 10823215: Curtain mode implementation for Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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
« no previous file with comments | « remoting/host/curtain_mode_mac.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 658d8b5d705545c8e075af61252089c59b9a7d2a..e9e473206e846a4edf92ea2574c33f40c2258408 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -51,6 +51,7 @@
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
+#include "remoting/host/curtain_mode_mac.h"
#include "remoting/host/sighup_listener_mac.h"
#endif
// N.B. OS_WIN is defined by including src/base headers.
@@ -446,6 +447,12 @@ class HostProcess
base::Unretained(this)));
#endif
+#if defined(OS_MACOSX)
+ curtain_.Init(base::Bind(&HostProcess::OnDisconnectRequested,
+ base::Unretained(this)));
+ host_->AddStatusObserver(&curtain_);
+#endif
+
host_->Start();
CreateAuthenticatorFactory();
@@ -558,6 +565,10 @@ class HostProcess
scoped_refptr<ChromotingHost> host_;
int exit_code_;
+
+#if defined(OS_MACOSX)
+ remoting::CurtainMode curtain_;
+#endif
};
} // namespace remoting
« no previous file with comments | « remoting/host/curtain_mode_mac.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698