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

Unified Diff: remoting/host/sas_sender_win.h

Issue 9617027: Chromoting: Implemented security attention sequence (SAS) emulation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
Index: remoting/host/sas_sender_win.h
diff --git a/remoting/host/sas_sender_win.h b/remoting/host/sas_sender_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..940421432323cc456553dad23fdf5841fcef6494
--- /dev/null
+++ b/remoting/host/sas_sender_win.h
@@ -0,0 +1,28 @@
+// 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_SENDER_WIN_H_
+#define REMOTING_HOST_SAS_SENDER_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.
Wez 2012/03/07 01:56:13 nit: What does it mean for the default sequence to
alexeypa (please no reviews) 2012/03/07 19:59:08 It implies that there are other SASs such as inser
Wez 2012/03/08 00:01:33 I'm not sure what you mean - regardless of whether
alexeypa (please no reviews) 2012/03/08 01:52:54 The latter.
+class SasSender {
Wez 2012/03/07 01:56:13 nit: For other input we have EventInjector, so per
alexeypa (please no reviews) 2012/03/07 19:59:08 Done.
+ public:
+ virtual ~SasSender() {}
+
+ // Sends the secure attention sequence to the console session.
+ virtual bool Send() = 0;
Wez 2012/03/07 01:56:13 nit: Send -> SendSAS / InjectSAS?
alexeypa (please no reviews) 2012/03/07 19:59:08 InjectSAS
+
+ static scoped_ptr<SasSender> Create();
Wez 2012/03/07 01:56:13 nit: Clarify that Create can return NULL if SendSA
alexeypa (please no reviews) 2012/03/07 19:59:08 Done.
+};
+
+} // namespace remoting
+
+#endif REMOTING_HOST_SAS_SENDER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698