| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cstdint> | 9 #include <cstdint> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "mojo/edk/embedder/scoped_ipc_support.h" | 38 #include "mojo/edk/embedder/scoped_ipc_support.h" |
| 39 #include "net/base/network_change_notifier.h" | 39 #include "net/base/network_change_notifier.h" |
| 40 #include "net/base/url_util.h" | 40 #include "net/base/url_util.h" |
| 41 #include "net/socket/client_socket_factory.h" | 41 #include "net/socket/client_socket_factory.h" |
| 42 #include "net/url_request/url_fetcher.h" | 42 #include "net/url_request/url_fetcher.h" |
| 43 #include "remoting/base/auto_thread_task_runner.h" | 43 #include "remoting/base/auto_thread_task_runner.h" |
| 44 #include "remoting/base/breakpad.h" | 44 #include "remoting/base/breakpad.h" |
| 45 #include "remoting/base/chromium_url_request.h" | 45 #include "remoting/base/chromium_url_request.h" |
| 46 #include "remoting/base/constants.h" | 46 #include "remoting/base/constants.h" |
| 47 #include "remoting/base/logging.h" | 47 #include "remoting/base/logging.h" |
| 48 #include "remoting/base/oauth_token_getter_impl.h" |
| 48 #include "remoting/base/rsa_key_pair.h" | 49 #include "remoting/base/rsa_key_pair.h" |
| 49 #include "remoting/base/util.h" | 50 #include "remoting/base/util.h" |
| 50 #include "remoting/host/branding.h" | 51 #include "remoting/host/branding.h" |
| 51 #include "remoting/host/chromoting_host.h" | 52 #include "remoting/host/chromoting_host.h" |
| 52 #include "remoting/host/chromoting_host_context.h" | 53 #include "remoting/host/chromoting_host_context.h" |
| 53 #include "remoting/host/chromoting_messages.h" | 54 #include "remoting/host/chromoting_messages.h" |
| 54 #include "remoting/host/config_file_watcher.h" | 55 #include "remoting/host/config_file_watcher.h" |
| 55 #include "remoting/host/config_watcher.h" | 56 #include "remoting/host/config_watcher.h" |
| 56 #include "remoting/host/desktop_environment.h" | 57 #include "remoting/host/desktop_environment.h" |
| 57 #include "remoting/host/desktop_environment_options.h" | 58 #include "remoting/host/desktop_environment_options.h" |
| 58 #include "remoting/host/desktop_session_connector.h" | 59 #include "remoting/host/desktop_session_connector.h" |
| 59 #include "remoting/host/dns_blackhole_checker.h" | 60 #include "remoting/host/dns_blackhole_checker.h" |
| 60 #include "remoting/host/gcd_rest_client.h" | 61 #include "remoting/host/gcd_rest_client.h" |
| 61 #include "remoting/host/gcd_state_updater.h" | 62 #include "remoting/host/gcd_state_updater.h" |
| 62 #include "remoting/host/heartbeat_sender.h" | 63 #include "remoting/host/heartbeat_sender.h" |
| 63 #include "remoting/host/host_change_notification_listener.h" | 64 #include "remoting/host/host_change_notification_listener.h" |
| 64 #include "remoting/host/host_config.h" | 65 #include "remoting/host/host_config.h" |
| 65 #include "remoting/host/host_event_logger.h" | 66 #include "remoting/host/host_event_logger.h" |
| 66 #include "remoting/host/host_exit_codes.h" | 67 #include "remoting/host/host_exit_codes.h" |
| 67 #include "remoting/host/host_main.h" | 68 #include "remoting/host/host_main.h" |
| 68 #include "remoting/host/host_power_save_blocker.h" | 69 #include "remoting/host/host_power_save_blocker.h" |
| 69 #include "remoting/host/host_status_logger.h" | 70 #include "remoting/host/host_status_logger.h" |
| 70 #include "remoting/host/input_injector.h" | 71 #include "remoting/host/input_injector.h" |
| 71 #include "remoting/host/ipc_desktop_environment.h" | 72 #include "remoting/host/ipc_desktop_environment.h" |
| 72 #include "remoting/host/ipc_host_event_logger.h" | 73 #include "remoting/host/ipc_host_event_logger.h" |
| 73 #include "remoting/host/logging.h" | 74 #include "remoting/host/logging.h" |
| 74 #include "remoting/host/me2me_desktop_environment.h" | 75 #include "remoting/host/me2me_desktop_environment.h" |
| 75 #include "remoting/host/oauth_token_getter_impl.h" | |
| 76 #include "remoting/host/pairing_registry_delegate.h" | 76 #include "remoting/host/pairing_registry_delegate.h" |
| 77 #include "remoting/host/pin_hash.h" | 77 #include "remoting/host/pin_hash.h" |
| 78 #include "remoting/host/policy_watcher.h" | 78 #include "remoting/host/policy_watcher.h" |
| 79 #include "remoting/host/security_key/security_key_auth_handler.h" | 79 #include "remoting/host/security_key/security_key_auth_handler.h" |
| 80 #include "remoting/host/security_key/security_key_extension.h" | 80 #include "remoting/host/security_key/security_key_extension.h" |
| 81 #include "remoting/host/service_urls.h" | 81 #include "remoting/host/service_urls.h" |
| 82 #include "remoting/host/shutdown_watchdog.h" | 82 #include "remoting/host/shutdown_watchdog.h" |
| 83 #include "remoting/host/signaling_connector.h" | 83 #include "remoting/host/signaling_connector.h" |
| 84 #include "remoting/host/single_window_desktop_environment.h" | 84 #include "remoting/host/single_window_desktop_environment.h" |
| 85 #include "remoting/host/switches.h" | 85 #include "remoting/host/switches.h" |
| (...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); | 1667 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); |
| 1668 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); | 1668 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); |
| 1669 | 1669 |
| 1670 // Run the main (also UI) message loop until the host no longer needs it. | 1670 // Run the main (also UI) message loop until the host no longer needs it. |
| 1671 base::RunLoop().Run(); | 1671 base::RunLoop().Run(); |
| 1672 | 1672 |
| 1673 return exit_code; | 1673 return exit_code; |
| 1674 } | 1674 } |
| 1675 | 1675 |
| 1676 } // namespace remoting | 1676 } // namespace remoting |
| OLD | NEW |