OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_HOST_SAS_INJECTOR_WIN_H_ | |
Wez
2012/03/08 22:58:55
The guard should really match the class name. Pro
alexeypa (please no reviews)
2012/03/09 01:13:54
Well, this would be pretty ugly. I removed _win fr
| |
6 #define REMOTING_HOST_SAS_INJECTOR_WIN_H_ | |
7 | |
8 #include <windows.h> | |
9 | |
10 #include "base/memory/scoped_ptr.h" | |
11 | |
12 namespace remoting { | |
13 | |
14 // Provides a way to emulate secure attention sequence (SAS). The default | |
15 // sequence is Ctrl+Alt+Delete. | |
16 class SasInjector { | |
17 public: | |
18 virtual ~SasInjector() {} | |
19 | |
20 // Sends the secure attention sequence to the console session. | |
21 virtual bool InjectSas() = 0; | |
22 | |
23 // Creates an instance of SasInjector if supported by the OS, otherwise | |
24 // returns NULL. | |
25 static scoped_ptr<SasInjector> Create(); | |
26 }; | |
27 | |
28 } // namespace remoting | |
29 | |
30 #endif REMOTING_HOST_SAS_INJECTOR_WIN_H_ | |
OLD | NEW |