| 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "ipc/ipc_channel.h" | 22 #include "ipc/ipc_channel.h" |
| 23 #include "ipc/ipc_channel_proxy.h" | 23 #include "ipc/ipc_channel_proxy.h" |
| 24 #include "ipc/ipc_listener.h" | 24 #include "ipc/ipc_listener.h" |
| 25 #include "media/base/media.h" | 25 #include "media/base/media.h" |
| 26 #include "net/base/net_util.h" |
| 26 #include "net/base/network_change_notifier.h" | 27 #include "net/base/network_change_notifier.h" |
| 27 #include "net/socket/client_socket_factory.h" | 28 #include "net/socket/client_socket_factory.h" |
| 28 #include "net/socket/ssl_server_socket.h" | 29 #include "net/socket/ssl_server_socket.h" |
| 29 #include "net/url_request/url_fetcher.h" | 30 #include "net/url_request/url_fetcher.h" |
| 30 #include "policy/policy_constants.h" | 31 #include "policy/policy_constants.h" |
| 31 #include "remoting/base/auto_thread_task_runner.h" | 32 #include "remoting/base/auto_thread_task_runner.h" |
| 32 #include "remoting/base/breakpad.h" | 33 #include "remoting/base/breakpad.h" |
| 33 #include "remoting/base/constants.h" | 34 #include "remoting/base/constants.h" |
| 34 #include "remoting/base/logging.h" | 35 #include "remoting/base/logging.h" |
| 35 #include "remoting/base/rsa_key_pair.h" | 36 #include "remoting/base/rsa_key_pair.h" |
| (...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); | 1578 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); |
| 1578 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); | 1579 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); |
| 1579 | 1580 |
| 1580 // Run the main (also UI) message loop until the host no longer needs it. | 1581 // Run the main (also UI) message loop until the host no longer needs it. |
| 1581 message_loop.Run(); | 1582 message_loop.Run(); |
| 1582 | 1583 |
| 1583 return exit_code; | 1584 return exit_code; |
| 1584 } | 1585 } |
| 1585 | 1586 |
| 1586 } // namespace remoting | 1587 } // namespace remoting |
| OLD | NEW |