OLD | NEW |
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 // This file implements the Windows service controlling Me2Me host processes | 5 // This file implements the Windows service controlling Me2Me host processes |
6 // running within user sessions. | 6 // running within user sessions. |
7 | 7 |
8 #include "remoting/host/win/wts_session_process_delegate.h" | 8 #include "remoting/host/win/wts_session_process_delegate.h" |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 // the message ID; |context| carries process ID. | 302 // the message ID; |context| carries process ID. |
303 switch (bytes_transferred) { | 303 switch (bytes_transferred) { |
304 case JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO: { | 304 case JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO: { |
305 caller_task_runner_->PostTask( | 305 caller_task_runner_->PostTask( |
306 FROM_HERE, base::Bind(&Core::OnActiveProcessZero, this)); | 306 FROM_HERE, base::Bind(&Core::OnActiveProcessZero, this)); |
307 break; | 307 break; |
308 } | 308 } |
309 case JOB_OBJECT_MSG_NEW_PROCESS: { | 309 case JOB_OBJECT_MSG_NEW_PROCESS: { |
310 caller_task_runner_->PostTask( | 310 caller_task_runner_->PostTask( |
311 FROM_HERE, base::Bind(&Core::OnProcessLaunchDetected, this, | 311 FROM_HERE, base::Bind(&Core::OnProcessLaunchDetected, this, |
312 reinterpret_cast<base::ProcessId>(context))); | 312 static_cast<base::ProcessId>( |
| 313 reinterpret_cast<uintptr_t>(context)))); |
313 break; | 314 break; |
314 } | 315 } |
315 } | 316 } |
316 } | 317 } |
317 | 318 |
318 bool WtsSessionProcessDelegate::Core::OnMessageReceived( | 319 bool WtsSessionProcessDelegate::Core::OnMessageReceived( |
319 const IPC::Message& message) { | 320 const IPC::Message& message) { |
320 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 321 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
321 | 322 |
322 return event_handler_->OnMessageReceived(message); | 323 return event_handler_->OnMessageReceived(message); |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 | 600 |
600 void WtsSessionProcessDelegate::CloseChannel() { | 601 void WtsSessionProcessDelegate::CloseChannel() { |
601 core_->CloseChannel(); | 602 core_->CloseChannel(); |
602 } | 603 } |
603 | 604 |
604 void WtsSessionProcessDelegate::KillProcess() { | 605 void WtsSessionProcessDelegate::KillProcess() { |
605 core_->KillProcess(); | 606 core_->KillProcess(); |
606 } | 607 } |
607 | 608 |
608 } // namespace remoting | 609 } // namespace remoting |
OLD | NEW |