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/host_service.h" | 8 #include "remoting/host/win/host_service.h" |
9 | 9 |
10 #include <sddl.h> | 10 #include <sddl.h> |
11 #include <windows.h> | 11 #include <windows.h> |
12 #include <wtsapi32.h> | 12 #include <wtsapi32.h> |
13 | 13 |
14 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
15 #include "base/base_switches.h" | 15 #include "base/base_switches.h" |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "base/win/message_window.h" | 24 #include "base/win/message_window.h" |
25 #include "base/win/scoped_com_initializer.h" | 25 #include "base/win/scoped_com_initializer.h" |
26 #include "remoting/base/auto_thread.h" | 26 #include "remoting/base/auto_thread.h" |
27 #include "remoting/base/scoped_sc_handle_win.h" | 27 #include "remoting/base/scoped_sc_handle_win.h" |
28 #include "remoting/host/branding.h" | 28 #include "remoting/host/branding.h" |
29 #include "remoting/host/daemon_process.h" | 29 #include "remoting/host/daemon_process.h" |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 int DaemonProcessMain() { | 436 int DaemonProcessMain() { |
437 HostService* service = HostService::GetInstance(); | 437 HostService* service = HostService::GetInstance(); |
438 if (!service->InitWithCommandLine(CommandLine::ForCurrentProcess())) { | 438 if (!service->InitWithCommandLine(CommandLine::ForCurrentProcess())) { |
439 return kUsageExitCode; | 439 return kUsageExitCode; |
440 } | 440 } |
441 | 441 |
442 return service->Run(); | 442 return service->Run(); |
443 } | 443 } |
444 | 444 |
445 } // namespace remoting | 445 } // namespace remoting |
OLD | NEW |