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 #include "remoting/host/desktop_session_win.h" | 5 #include "remoting/host/desktop_session_win.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 #include "remoting/base/auto_thread_task_runner.h" | 11 #include "remoting/base/auto_thread_task_runner.h" |
12 #include "remoting/host/chromoting_messages.h" | 12 #include "remoting/host/chromoting_messages.h" |
13 #include "remoting/host/daemon_process.h" | 13 #include "remoting/host/daemon_process.h" |
14 #include "remoting/host/host_main.h" | 14 #include "remoting/host/host_main.h" |
15 #include "remoting/host/ipc_constants.h" | 15 #include "remoting/host/ipc_constants.h" |
16 #include "remoting/host/sas_injector.h" | 16 #include "remoting/host/sas_injector.h" |
17 #include "remoting/host/win/worker_process_launcher.h" | 17 #include "remoting/host/win/worker_process_launcher.h" |
18 #include "remoting/host/win/wts_session_process_delegate.h" | 18 #include "remoting/host/win/wts_session_process_delegate.h" |
19 #include "remoting/host/win/wts_terminal_monitor.h" | 19 #include "remoting/host/win/wts_terminal_monitor.h" |
20 | 20 |
21 using base::win::ScopedHandle; | 21 using base::win::ScopedHandle; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // The security descriptor of the daemon IPC endpoint. It gives full access | 25 // The security descriptor of the daemon IPC endpoint. It gives full access |
26 // to LocalSystem and denies access by anyone else. | 26 // to SYSTEM and denies access by anyone else. |
27 const char kDaemonIpcSecurityDescriptor[] = "O:SYG:SYD:(A;;GA;;;SY)"; | 27 const char kDaemonIpcSecurityDescriptor[] = "O:SYG:SYD:(A;;GA;;;SY)"; |
28 | 28 |
29 // The command line parameters that should be copied from the service's command | 29 // The command line parameters that should be copied from the service's command |
30 // line to the host process. | 30 // line to the host process. |
31 const char* kCopiedSwitchNames[] = { switches::kV, switches::kVModule }; | 31 const char* kCopiedSwitchNames[] = { switches::kV, switches::kVModule }; |
32 | 32 |
33 } // namespace | 33 } // namespace |
34 | 34 |
35 namespace remoting { | 35 namespace remoting { |
36 | 36 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 void DesktopSessionWin::RestartDesktopProcess( | 155 void DesktopSessionWin::RestartDesktopProcess( |
156 const tracked_objects::Location& location) { | 156 const tracked_objects::Location& location) { |
157 DCHECK(main_task_runner_->BelongsToCurrentThread()); | 157 DCHECK(main_task_runner_->BelongsToCurrentThread()); |
158 | 158 |
159 launcher_->Send(new ChromotingDaemonDesktopMsg_Crash( | 159 launcher_->Send(new ChromotingDaemonDesktopMsg_Crash( |
160 location.function_name(), location.file_name(), location.line_number())); | 160 location.function_name(), location.file_name(), location.line_number())); |
161 } | 161 } |
162 | 162 |
163 } // namespace remoting | 163 } // namespace remoting |
OLD | NEW |