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

Unified Diff: remoting/host/win/wts_console_session_process_driver.cc

Issue 11369024: Calling SendSAS() from a service yo make sure that Secure Attention Sequence can be injected even w… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/win/wts_console_session_process_driver.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/wts_console_session_process_driver.cc
diff --git a/remoting/host/win/wts_console_session_process_driver.cc b/remoting/host/win/wts_console_session_process_driver.cc
index 4cba96297dc8cf195a321e4001c9b989be587c3d..23bd673b62810e9b395cd22b040c6afd07e7e606 100644
--- a/remoting/host/win/wts_console_session_process_driver.cc
+++ b/remoting/host/win/wts_console_session_process_driver.cc
@@ -9,7 +9,10 @@
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "ipc/ipc_message.h"
+#include "ipc/ipc_message_macros.h"
+#include "remoting/host/chromoting_messages.h"
#include "remoting/host/ipc_consts.h"
+#include "remoting/host/sas_injector.h"
#include "remoting/host/win/worker_process_launcher.h"
#include "remoting/host/win/wts_console_monitor.h"
#include "remoting/host/win/wts_session_process_delegate.h"
@@ -54,7 +57,13 @@ bool WtsConsoleSessionProcessDriver::OnMessageReceived(
const IPC::Message& message) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
- return false;
+ bool handled = true;
+ IPC_BEGIN_MESSAGE_MAP(WtsConsoleSessionProcessDriver, message)
+ IPC_MESSAGE_HANDLER(ChromotingNetworkDaemonMsg_SendSasToConsole,
+ OnSendSasToConsole)
+ IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_END_MESSAGE_MAP()
+ return handled;
}
void WtsConsoleSessionProcessDriver::OnPermanentError() {
@@ -107,4 +116,16 @@ void WtsConsoleSessionProcessDriver::DoStop() {
CompleteStopping();
}
+void WtsConsoleSessionProcessDriver::OnSendSasToConsole() {
+ DCHECK(caller_task_runner_->BelongsToCurrentThread());
+
+ if (!launcher_)
+ return;
+
+ if (!sas_injector_)
+ sas_injector_ = SasInjector::Create();
+ if (!sas_injector_->InjectSas())
+ LOG(ERROR) << "Failed to inject Secure Attention Sequence.";
+}
+
} // namespace remoting
« no previous file with comments | « remoting/host/win/wts_console_session_process_driver.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698