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" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 #include <commctrl.h> | 97 #include <commctrl.h> |
98 #include "base/win/registry.h" | 98 #include "base/win/registry.h" |
99 #include "base/win/scoped_handle.h" | 99 #include "base/win/scoped_handle.h" |
100 #include "remoting/host/pairing_registry_delegate_win.h" | 100 #include "remoting/host/pairing_registry_delegate_win.h" |
101 #include "remoting/host/win/session_desktop_environment.h" | 101 #include "remoting/host/win/session_desktop_environment.h" |
102 #endif // defined(OS_WIN) | 102 #endif // defined(OS_WIN) |
103 | 103 |
104 using remoting::protocol::PairingRegistry; | 104 using remoting::protocol::PairingRegistry; |
105 using remoting::protocol::NetworkSettings; | 105 using remoting::protocol::NetworkSettings; |
106 | 106 |
| 107 #if defined(USE_REMOTING_MACOSX_INTERNAL) |
| 108 #include "remoting/tools/internal/internal_mac-inl.h" |
| 109 #endif |
| 110 |
107 namespace { | 111 namespace { |
108 | 112 |
109 // This is used for tagging system event logs. | 113 // This is used for tagging system event logs. |
110 const char kApplicationName[] = "chromoting"; | 114 const char kApplicationName[] = "chromoting"; |
111 | 115 |
112 #if defined(OS_LINUX) | 116 #if defined(OS_LINUX) |
113 // The command line switch used to pass name of the pipe to capture audio on | 117 // The command line switch used to pass name of the pipe to capture audio on |
114 // linux. | 118 // linux. |
115 const char kAudioPipeSwitchName[] = "audio-pipe-name"; | 119 const char kAudioPipeSwitchName[] = "audio-pipe-name"; |
116 | 120 |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); | 1503 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); |
1500 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); | 1504 new HostProcess(context.Pass(), &exit_code, &shutdown_watchdog); |
1501 | 1505 |
1502 // Run the main (also UI) message loop until the host no longer needs it. | 1506 // Run the main (also UI) message loop until the host no longer needs it. |
1503 message_loop.Run(); | 1507 message_loop.Run(); |
1504 | 1508 |
1505 return exit_code; | 1509 return exit_code; |
1506 } | 1510 } |
1507 | 1511 |
1508 } // namespace remoting | 1512 } // namespace remoting |
OLD | NEW |