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 "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/scoped_native_library.h" | 15 #include "base/scoped_native_library.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 #include "remoting/base/auto_thread_task_runner.h" | 19 #include "remoting/base/auto_thread_task_runner.h" |
| 20 #include "remoting/base/breakpad.h" |
20 #include "remoting/host/desktop_process.h" | 21 #include "remoting/host/desktop_process.h" |
21 #include "remoting/host/host_exit_codes.h" | 22 #include "remoting/host/host_exit_codes.h" |
22 #include "remoting/host/logging.h" | 23 #include "remoting/host/logging.h" |
23 #include "remoting/host/usage_stats_consent.h" | 24 #include "remoting/host/usage_stats_consent.h" |
24 | 25 |
25 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
26 #include "base/mac/scoped_nsautorelease_pool.h" | 27 #include "base/mac/scoped_nsautorelease_pool.h" |
27 #endif // defined(OS_MACOSX) | 28 #endif // defined(OS_MACOSX) |
28 | 29 |
29 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 user32.GetFunctionPointer("SetProcessDPIAware")); | 135 user32.GetFunctionPointer("SetProcessDPIAware")); |
135 set_process_dpi_aware(); | 136 set_process_dpi_aware(); |
136 } | 137 } |
137 | 138 |
138 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting | 139 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting |
139 // the command line from GetCommandLineW(), so we can safely pass NULL here. | 140 // the command line from GetCommandLineW(), so we can safely pass NULL here. |
140 return main(0, NULL); | 141 return main(0, NULL); |
141 } | 142 } |
142 | 143 |
143 #endif // defined(OS_WIN) | 144 #endif // defined(OS_WIN) |
OLD | NEW |