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 is an application of a minimal host process in a Chromoting | 5 // This is an application of a minimal host process in a Chromoting |
6 // system. It serves the purpose of gluing different pieces together | 6 // system. It serves the purpose of gluing different pieces together |
7 // to make a functional host process for testing. | 7 // to make a functional host process for testing. |
8 // | 8 // |
9 // It peforms the following functionality: | 9 // It peforms the following functionality: |
10 // 1. Connect to the GTalk network and register the machine as a host. | 10 // 1. Connect to the GTalk network and register the machine as a host. |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "base/utf_string_conversions.h" | 30 #include "base/utf_string_conversions.h" |
31 #include "base/threading/thread.h" | 31 #include "base/threading/thread.h" |
32 #include "crypto/nss_util.h" | 32 #include "crypto/nss_util.h" |
33 #include "net/base/network_change_notifier.h" | 33 #include "net/base/network_change_notifier.h" |
34 #include "net/socket/ssl_server_socket.h" | 34 #include "net/socket/ssl_server_socket.h" |
35 #include "remoting/base/auto_thread_task_runner.h" | 35 #include "remoting/base/auto_thread_task_runner.h" |
36 #include "remoting/base/constants.h" | 36 #include "remoting/base/constants.h" |
37 #include "remoting/host/audio_capturer.h" | 37 #include "remoting/host/audio_capturer.h" |
38 #include "remoting/host/chromoting_host_context.h" | 38 #include "remoting/host/chromoting_host_context.h" |
39 #include "remoting/host/chromoting_host.h" | 39 #include "remoting/host/chromoting_host.h" |
| 40 #include "remoting/host/constants.h" |
40 #include "remoting/host/desktop_environment.h" | 41 #include "remoting/host/desktop_environment.h" |
| 42 #include "remoting/host/dns_blackhole_checker.h" |
| 43 #include "remoting/host/event_executor.h" |
41 #include "remoting/host/desktop_environment.h" | 44 #include "remoting/host/desktop_environment.h" |
42 #include "remoting/host/desktop_environment_factory.h" | 45 #include "remoting/host/desktop_environment_factory.h" |
43 #include "remoting/host/dns_blackhole_checker.h" | |
44 #include "remoting/host/event_executor.h" | |
45 #include "remoting/host/heartbeat_sender.h" | 46 #include "remoting/host/heartbeat_sender.h" |
46 #include "remoting/host/host_exit_codes.h" | |
47 #include "remoting/host/host_key_pair.h" | 47 #include "remoting/host/host_key_pair.h" |
48 #include "remoting/host/host_secret.h" | 48 #include "remoting/host/host_secret.h" |
49 #include "remoting/host/it2me_host_user_interface.h" | 49 #include "remoting/host/it2me_host_user_interface.h" |
50 #include "remoting/host/json_host_config.h" | 50 #include "remoting/host/json_host_config.h" |
51 #include "remoting/host/log_to_server.h" | 51 #include "remoting/host/log_to_server.h" |
52 #include "remoting/host/network_settings.h" | 52 #include "remoting/host/network_settings.h" |
53 #include "remoting/host/register_support_host_request.h" | 53 #include "remoting/host/register_support_host_request.h" |
54 #include "remoting/host/session_manager_factory.h" | 54 #include "remoting/host/session_manager_factory.h" |
55 #include "remoting/host/signaling_connector.h" | 55 #include "remoting/host/signaling_connector.h" |
56 #include "remoting/host/video_frame_capturer_fake.h" | 56 #include "remoting/host/video_frame_capturer_fake.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 max_port < 0 || max_port > 65535) { | 461 max_port < 0 || max_port > 65535) { |
462 LOG(ERROR) << "Invalid max-port value: " << max_port | 462 LOG(ERROR) << "Invalid max-port value: " << max_port |
463 << ". Expected integer in range [0, 65535]."; | 463 << ". Expected integer in range [0, 65535]."; |
464 return 1; | 464 return 1; |
465 } | 465 } |
466 simple_host.network_settings()->max_port = max_port; | 466 simple_host.network_settings()->max_port = max_port; |
467 } | 467 } |
468 | 468 |
469 return simple_host.Run(); | 469 return simple_host.Run(); |
470 } | 470 } |
OLD | NEW |