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

Side by Side Diff: remoting/host/curtain_mode_win.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/curtain_mode.h" 5 #include "remoting/host/curtain_mode.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace remoting { 9 namespace remoting {
10 10
11 class CurtainModeWin : public CurtainMode { 11 class CurtainModeWin : public CurtainMode {
12 public: 12 public:
13 CurtainModeWin() {} 13 CurtainModeWin() {}
14 // Overriden from CurtainMode. 14 // Overriden from CurtainMode.
15 virtual void SetActivated(bool activated) OVERRIDE { 15 virtual void SetActivated(bool activated) OVERRIDE {
16 NOTIMPLEMENTED(); 16 // Curtain-mode is not currently implemented for Windows.
17 if (activated) {
18 on_error_.Run();
19 }
17 } 20 }
18 21
19 private: 22 private:
20 DISALLOW_COPY_AND_ASSIGN(CurtainModeWin); 23 DISALLOW_COPY_AND_ASSIGN(CurtainModeWin);
21 }; 24 };
22 25
23 // static 26 // static
24 scoped_ptr<CurtainMode> CurtainMode::Create( 27 scoped_ptr<CurtainMode> CurtainMode::Create(
25 const base::Closure& on_session_activate, 28 const base::Closure& on_session_activate,
26 const base::Closure& on_error) { 29 const base::Closure& on_error) {
27 return scoped_ptr<CurtainMode>( 30 return scoped_ptr<CurtainMode>(
28 new CurtainModeWin()); 31 new CurtainModeWin());
29 } 32 }
30 33
31 } // namespace remoting 34 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698