OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "remoting/host/setup/native_messaging_host.h" | 5 #include "remoting/host/setup/native_messaging_host.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "remoting/host/logging.h" | 11 #include "remoting/host/logging.h" |
12 #include "remoting/host/pairing_registry_delegate.h" | 12 #include "remoting/host/pairing_registry_delegate.h" |
13 #include "remoting/protocol/pairing_registry.h" | 13 #include "remoting/protocol/pairing_registry.h" |
14 | 14 |
15 #if defined(OS_POSIX) | 15 #if defined(OS_POSIX) |
16 #include <unistd.h> | 16 #include <unistd.h> |
17 #endif | 17 #endif |
18 | 18 |
19 using remoting::protocol::PairingRegistry; | 19 using remoting::protocol::PairingRegistry; |
(...skipping 21 matching lines...) Expand all Loading... |
41 remoting::CreatePairingRegistry(message_loop.message_loop_proxy()); | 41 remoting::CreatePairingRegistry(message_loop.message_loop_proxy()); |
42 remoting::NativeMessagingHost host(remoting::DaemonController::Create(), | 42 remoting::NativeMessagingHost host(remoting::DaemonController::Create(), |
43 pairing_registry, | 43 pairing_registry, |
44 read_file, write_file, | 44 read_file, write_file, |
45 message_loop.message_loop_proxy(), | 45 message_loop.message_loop_proxy(), |
46 run_loop.QuitClosure()); | 46 run_loop.QuitClosure()); |
47 host.Start(); | 47 host.Start(); |
48 run_loop.Run(); | 48 run_loop.Run(); |
49 return 0; | 49 return 0; |
50 } | 50 } |
OLD | NEW |