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/host_service_win.h" | 8 #include "remoting/host/win/host_service.h" |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
11 #include <wtsapi32.h> | 11 #include <wtsapi32.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
15 #include "base/base_paths.h" | 15 #include "base/base_paths.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/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
22 #include "base/stringprintf.h" | 22 #include "base/stringprintf.h" |
23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
25 #include "base/win/wrapped_window_proc.h" | 25 #include "base/win/wrapped_window_proc.h" |
26 #include "remoting/base/breakpad.h" | 26 #include "remoting/base/breakpad.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/host_service_resource.h" | |
30 #include "remoting/host/usage_stats_consent.h" | 29 #include "remoting/host/usage_stats_consent.h" |
31 #include "remoting/host/wts_console_observer_win.h" | 30 #include "remoting/host/win/host_service_resource.h" |
32 #include "remoting/host/wts_session_process_launcher_win.h" | 31 #include "remoting/host/win/wts_console_observer.h" |
| 32 #include "remoting/host/win/wts_session_process_launcher.h" |
33 | 33 |
34 using base::StringPrintf; | 34 using base::StringPrintf; |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 const char kIoThreadName[] = "I/O thread"; | 38 const char kIoThreadName[] = "I/O thread"; |
39 | 39 |
40 // A window class for the session change notifications window. | 40 // A window class for the session change notifications window. |
41 const wchar_t kSessionNotificationWindowClass[] = | 41 const wchar_t kSessionNotificationWindowClass[] = |
42 L"Chromoting_SessionNotificationWindow"; | 42 L"Chromoting_SessionNotificationWindow"; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 } | 438 } |
439 | 439 |
440 remoting::HostService* service = remoting::HostService::GetInstance(); | 440 remoting::HostService* service = remoting::HostService::GetInstance(); |
441 if (!service->InitWithCommandLine(command_line)) { | 441 if (!service->InitWithCommandLine(command_line)) { |
442 usage(argv[0]); | 442 usage(argv[0]); |
443 return kUsageExitCode; | 443 return kUsageExitCode; |
444 } | 444 } |
445 | 445 |
446 return service->Run(); | 446 return service->Run(); |
447 } | 447 } |
OLD | NEW |