Index: remoting/host/sas_injector_win.h |
diff --git a/remoting/host/sas_injector_win.h b/remoting/host/sas_injector_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..98491bcb5a0772030f27a96a02e9038f2afa3a56 |
--- /dev/null |
+++ b/remoting/host/sas_injector_win.h |
@@ -0,0 +1,30 @@ |
+// 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. |
+ |
+#ifndef REMOTING_HOST_SAS_INJECTOR_WIN_H_ |
+#define REMOTING_HOST_SAS_INJECTOR_WIN_H_ |
+ |
+#include <windows.h> |
+ |
+#include "base/memory/scoped_ptr.h" |
+ |
+namespace remoting { |
+ |
+// Provides a way to emulate secure attention sequence (SAS). The default |
+// sequence is Ctrl+Alt+Delete. |
+class SasInjector { |
+ public: |
+ virtual ~SasInjector() {} |
+ |
+ // Sends the secure attention sequence to the console session. |
+ virtual bool InjectSas() = 0; |
+ |
+ // Creates an instance of SasInjector if supported by the OS, otherwise |
+ // returns NULL. |
+ static scoped_ptr<SasInjector> Create(); |
+}; |
+ |
+} // namespace remoting |
+ |
+#endif REMOTING_HOST_SAS_INJECTOR_WIN_H_ |