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 a standalone host process for Me2Me. | 5 // This file implements a standalone host process for Me2Me. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "base/scoped_native_library.h" | 18 #include "base/scoped_native_library.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
20 #include "base/synchronization/waitable_event.h" | 20 #include "base/synchronization/waitable_event.h" |
21 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
23 #include "base/win/windows_version.h" | 23 #include "base/win/windows_version.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "chrome/common/net/google_apis/google_api_keys.h" | |
26 #include "crypto/nss_util.h" | 25 #include "crypto/nss_util.h" |
| 26 #include "google_apis/google_api_keys.h" |
27 #include "ipc/ipc_channel.h" | 27 #include "ipc/ipc_channel.h" |
28 #include "ipc/ipc_channel_proxy.h" | 28 #include "ipc/ipc_channel_proxy.h" |
29 #include "net/base/network_change_notifier.h" | 29 #include "net/base/network_change_notifier.h" |
30 #include "net/socket/ssl_server_socket.h" | 30 #include "net/socket/ssl_server_socket.h" |
31 #include "remoting/base/auto_thread_task_runner.h" | 31 #include "remoting/base/auto_thread_task_runner.h" |
32 #include "remoting/base/breakpad.h" | 32 #include "remoting/base/breakpad.h" |
33 #include "remoting/base/constants.h" | 33 #include "remoting/base/constants.h" |
34 #include "remoting/host/branding.h" | 34 #include "remoting/host/branding.h" |
35 #include "remoting/host/chromoting_host.h" | 35 #include "remoting/host/chromoting_host.h" |
36 #include "remoting/host/chromoting_host_context.h" | 36 #include "remoting/host/chromoting_host_context.h" |
37 #include "remoting/host/chromoting_messages.h" | 37 #include "remoting/host/chromoting_messages.h" |
| 38 #include "remoting/host/config_file_watcher.h" |
38 #include "remoting/host/constants.h" | 39 #include "remoting/host/constants.h" |
39 #include "remoting/host/config_file_watcher.h" | 40 #include "remoting/host/config_file_watcher.h" |
40 #include "remoting/host/desktop_environment_factory.h" | 41 #include "remoting/host/desktop_environment_factory.h" |
41 #include "remoting/host/dns_blackhole_checker.h" | 42 #include "remoting/host/dns_blackhole_checker.h" |
42 #include "remoting/host/event_executor.h" | 43 #include "remoting/host/event_executor.h" |
43 #include "remoting/host/heartbeat_sender.h" | 44 #include "remoting/host/heartbeat_sender.h" |
44 #include "remoting/host/host_config.h" | 45 #include "remoting/host/host_config.h" |
45 #include "remoting/host/host_event_logger.h" | 46 #include "remoting/host/host_event_logger.h" |
46 #include "remoting/host/host_user_interface.h" | 47 #include "remoting/host/host_user_interface.h" |
47 #include "remoting/host/json_host_config.h" | 48 #include "remoting/host/json_host_config.h" |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 user32.GetFunctionPointer("SetProcessDPIAware")); | 789 user32.GetFunctionPointer("SetProcessDPIAware")); |
789 set_process_dpi_aware(); | 790 set_process_dpi_aware(); |
790 } | 791 } |
791 | 792 |
792 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting | 793 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting |
793 // the command line from GetCommandLineW(), so we can safely pass NULL here. | 794 // the command line from GetCommandLineW(), so we can safely pass NULL here. |
794 return main(0, NULL); | 795 return main(0, NULL); |
795 } | 796 } |
796 | 797 |
797 #endif // defined(OS_WIN) | 798 #endif // defined(OS_WIN) |
OLD | NEW |