diff options
author | rmsousa@chromium.org <rmsousa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 02:06:34 +0000 |
---|---|---|
committer | rmsousa@chromium.org <rmsousa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 02:06:34 +0000 |
commit | 1603be0c4d285afbbb8326859c04ccaafdfe0e81 (patch) | |
tree | 60a4dacf72bd3dfe010af7bd2d92126f64c433dc /remoting/host/curtain_mode_win.cc | |
parent | ecac5739b92ef9668e9361c7af69ac0a04837f0b (diff) | |
download | chromium_src-1603be0c4d285afbbb8326859c04ccaafdfe0e81.zip chromium_src-1603be0c4d285afbbb8326859c04ccaafdfe0e81.tar.gz chromium_src-1603be0c4d285afbbb8326859c04ccaafdfe0e81.tar.bz2 |
Curtain policy cross-platform plumbing and fixes
This moves everything into a cross-platform plumbing, makes the curtain policy lifetime the same as the other HostStatusObservers (to avoid issues with host restarts), and changes the OnPolicyUpdated handler to restart the host at most once.
BUG=153590
Review URL: https://chromiumcodereview.appspot.com/10914298
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/curtain_mode_win.cc')
-rw-r--r-- | remoting/host/curtain_mode_win.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/remoting/host/curtain_mode_win.cc b/remoting/host/curtain_mode_win.cc new file mode 100644 index 0000000..f3ebcd2 --- /dev/null +++ b/remoting/host/curtain_mode_win.cc @@ -0,0 +1,31 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "remoting/host/curtain_mode.h" + +#include "base/logging.h" + +namespace remoting { + +class CurtainModeWin : public CurtainMode { + public: + CurtainModeWin() {} + // Overriden from CurtainMode. + virtual void SetActivated(bool activated) OVERRIDE { + NOTIMPLEMENTED(); + } + + private: + DISALLOW_COPY_AND_ASSIGN(CurtainModeWin); +}; + +// static +scoped_ptr<CurtainMode> CurtainMode::Create( + const base::Closure& on_session_activate, + const base::Closure& on_error) { + return scoped_ptr<CurtainMode>( + new CurtainModeWin()); +} + +} // namespace remoting |