| 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 #ifndef REMOTING_HOST_WIN_HOST_SERVICE_H_ | 5 #ifndef REMOTING_HOST_WIN_HOST_SERVICE_H_ |
| 6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ | 6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 14 #include "remoting/host/win/wts_console_monitor.h" | 14 #include "remoting/host/win/wts_console_monitor.h" |
| 15 | 15 |
| 16 class CommandLine; | 16 class CommandLine; |
| 17 class MessageLoop; | 17 class MessageLoop; |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
| 21 } // namespace base | 21 } // namespace base |
| 22 | 22 |
| 23 namespace remoting { | 23 namespace remoting { |
| 24 | 24 |
| 25 class AutoThreadTaskRunner; | 25 class AutoThreadTaskRunner; |
| 26 class Stoppable; | 26 class Stoppable; |
| 27 class WtsConsoleObserver; | 27 class WtsConsoleObserver; |
| 28 | 28 |
| 29 #if defined(REMOTING_MULTI_PROCESS) | |
| 30 class DaemonProcess; | |
| 31 #else // !defined(REMOTING_MULTI_PROCESS) | |
| 32 class WtsSessionProcessLauncher; | |
| 33 #endif // !defined(REMOTING_MULTI_PROCESS) | |
| 34 | |
| 35 class HostService : public WtsConsoleMonitor { | 29 class HostService : public WtsConsoleMonitor { |
| 36 public: | 30 public: |
| 37 static HostService* GetInstance(); | 31 static HostService* GetInstance(); |
| 38 | 32 |
| 39 // This function parses the command line and selects the action routine. | 33 // This function parses the command line and selects the action routine. |
| 40 bool InitWithCommandLine(const CommandLine* command_line); | 34 bool InitWithCommandLine(const CommandLine* command_line); |
| 41 | 35 |
| 42 // Invoke the choosen action routine. | 36 // Invoke the choosen action routine. |
| 43 int Run(); | 37 int Run(); |
| 44 | 38 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 108 |
| 115 // Singleton. | 109 // Singleton. |
| 116 friend struct DefaultSingletonTraits<HostService>; | 110 friend struct DefaultSingletonTraits<HostService>; |
| 117 | 111 |
| 118 DISALLOW_COPY_AND_ASSIGN(HostService); | 112 DISALLOW_COPY_AND_ASSIGN(HostService); |
| 119 }; | 113 }; |
| 120 | 114 |
| 121 } // namespace remoting | 115 } // namespace remoting |
| 122 | 116 |
| 123 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ | 117 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ |
| OLD | NEW |