| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 #include <commctrl.h> | 126 #include <commctrl.h> |
| 127 #include "base/win/registry.h" | 127 #include "base/win/registry.h" |
| 128 #include "base/win/scoped_handle.h" | 128 #include "base/win/scoped_handle.h" |
| 129 #include "remoting/host/pairing_registry_delegate_win.h" | 129 #include "remoting/host/pairing_registry_delegate_win.h" |
| 130 #include "remoting/host/win/session_desktop_environment.h" | 130 #include "remoting/host/win/session_desktop_environment.h" |
| 131 #endif // defined(OS_WIN) | 131 #endif // defined(OS_WIN) |
| 132 | 132 |
| 133 using remoting::protocol::PairingRegistry; | 133 using remoting::protocol::PairingRegistry; |
| 134 using remoting::protocol::NetworkSettings; | 134 using remoting::protocol::NetworkSettings; |
| 135 | 135 |
| 136 #if defined(USE_REMOTING_MACOSX_INTERNAL) | 136 #if defined(OS_MACOSX) |
| 137 #include "remoting/tools/internal/internal_mac-inl.h" | 137 |
| 138 #endif | 138 // The following creates a section that tells Mac OS X that it is OK to let us |
| 139 // inject input in the login screen. Just the name of the section is important, |
| 140 // not its contents. |
| 141 __attribute__((used)) |
| 142 __attribute__((section ("__CGPreLoginApp,__cgpreloginapp"))) |
| 143 static const char magic_section[] = ""; |
| 144 |
| 145 #endif // defined(OS_MACOSX) |
| 139 | 146 |
| 140 namespace { | 147 namespace { |
| 141 | 148 |
| 142 #if !defined(REMOTING_MULTI_PROCESS) | 149 #if !defined(REMOTING_MULTI_PROCESS) |
| 143 // This is used for tagging system event logs. | 150 // This is used for tagging system event logs. |
| 144 const char kApplicationName[] = "chromoting"; | 151 const char kApplicationName[] = "chromoting"; |
| 145 | 152 |
| 146 // Value used for --host-config option to indicate that the path must be read | 153 // Value used for --host-config option to indicate that the path must be read |
| 147 // from stdin. | 154 // from stdin. |
| 148 const char kStdinConfigPath[] = "-"; | 155 const char kStdinConfigPath[] = "-"; |
| (...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); | 1662 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); |
| 1656 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); | 1663 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); |
| 1657 | 1664 |
| 1658 // Run the main (also UI) message loop until the host no longer needs it. | 1665 // Run the main (also UI) message loop until the host no longer needs it. |
| 1659 base::RunLoop().Run(); | 1666 base::RunLoop().Run(); |
| 1660 | 1667 |
| 1661 return exit_code; | 1668 return exit_code; |
| 1662 } | 1669 } |
| 1663 | 1670 |
| 1664 } // namespace remoting | 1671 } // namespace remoting |
| OLD | NEW |