| 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_HOST_SERVICE_WIN_H_ | 5 #ifndef REMOTING_HOST_HOST_SERVICE_WIN_H_ |
| 6 #define REMOTING_HOST_HOST_SERVICE_WIN_H_ | 6 #define REMOTING_HOST_HOST_SERVICE_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/file_path.h" | |
| 11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 13 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 14 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 15 #include "remoting/host/wts_console_monitor_win.h" | 14 #include "remoting/host/wts_console_monitor_win.h" |
| 16 | 15 |
| 17 class CommandLine; | 16 class CommandLine; |
| 18 class MessageLoop; | 17 class MessageLoop; |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 80 |
| 82 // Current physical console session id. | 81 // Current physical console session id. |
| 83 uint32 console_session_id_; | 82 uint32 console_session_id_; |
| 84 | 83 |
| 85 // The list of observers receiving notifications about any session attached | 84 // The list of observers receiving notifications about any session attached |
| 86 // to the physical console. | 85 // to the physical console. |
| 87 ObserverList<WtsConsoleObserver> console_observers_; | 86 ObserverList<WtsConsoleObserver> console_observers_; |
| 88 | 87 |
| 89 scoped_ptr<WtsSessionProcessLauncher> launcher_; | 88 scoped_ptr<WtsSessionProcessLauncher> launcher_; |
| 90 | 89 |
| 91 // The host binary name. | |
| 92 FilePath host_binary_; | |
| 93 | |
| 94 // Service message loop. | 90 // Service message loop. |
| 95 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 91 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 96 | 92 |
| 97 // The action routine to be executed. | 93 // The action routine to be executed. |
| 98 int (HostService::*run_routine_)(); | 94 int (HostService::*run_routine_)(); |
| 99 | 95 |
| 100 // The service name. | 96 // The service name. |
| 101 std::wstring service_name_; | 97 std::wstring service_name_; |
| 102 | 98 |
| 103 // The service status handle. | 99 // The service status handle. |
| 104 SERVICE_STATUS_HANDLE service_status_handle_; | 100 SERVICE_STATUS_HANDLE service_status_handle_; |
| 105 | 101 |
| 106 // A waitable event that is used to wait until the service is stopped. | 102 // A waitable event that is used to wait until the service is stopped. |
| 107 base::WaitableEvent stopped_event_; | 103 base::WaitableEvent stopped_event_; |
| 108 | 104 |
| 109 // Singleton. | 105 // Singleton. |
| 110 friend struct DefaultSingletonTraits<HostService>; | 106 friend struct DefaultSingletonTraits<HostService>; |
| 111 | 107 |
| 112 DISALLOW_COPY_AND_ASSIGN(HostService); | 108 DISALLOW_COPY_AND_ASSIGN(HostService); |
| 113 }; | 109 }; |
| 114 | 110 |
| 115 } // namespace remoting | 111 } // namespace remoting |
| 116 | 112 |
| 117 #endif // REMOTING_HOST_HOST_SERVICE_WIN_H_ | 113 #endif // REMOTING_HOST_HOST_SERVICE_WIN_H_ |
| OLD | NEW |