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_WTS_CONSOLE_MONITOR_WIN_H_ | 5 #ifndef REMOTING_HOST_WIN_WTS_CONSOLE_MONITOR_H_ |
6 #define REMOTING_HOST_WTS_CONSOLE_MONITOR_WIN_H_ | 6 #define REMOTING_HOST_WIN_WTS_CONSOLE_MONITOR_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 class WtsConsoleObserver; | 14 class WtsConsoleObserver; |
15 | 15 |
16 class WtsConsoleMonitor { | 16 class WtsConsoleMonitor { |
17 public: | 17 public: |
18 virtual ~WtsConsoleMonitor() {} | 18 virtual ~WtsConsoleMonitor() {} |
19 | 19 |
20 // Registers an observer to receive notifications about a particular WTS | 20 // Registers an observer to receive notifications about a particular WTS |
21 // console (i.e. the physical console or a remote console). | 21 // console (i.e. the physical console or a remote console). |
22 virtual void AddWtsConsoleObserver(WtsConsoleObserver* observer) = 0; | 22 virtual void AddWtsConsoleObserver(WtsConsoleObserver* observer) = 0; |
23 | 23 |
24 // Unregisters a previously registered observer. | 24 // Unregisters a previously registered observer. |
25 virtual void RemoveWtsConsoleObserver(WtsConsoleObserver* observer) = 0; | 25 virtual void RemoveWtsConsoleObserver(WtsConsoleObserver* observer) = 0; |
26 | 26 |
27 protected: | 27 protected: |
28 WtsConsoleMonitor() {} | 28 WtsConsoleMonitor() {} |
29 | 29 |
30 private: | 30 private: |
31 DISALLOW_COPY_AND_ASSIGN(WtsConsoleMonitor); | 31 DISALLOW_COPY_AND_ASSIGN(WtsConsoleMonitor); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace remoting | 34 } // namespace remoting |
35 | 35 |
36 #endif // REMOTING_HOST_WTS_CONSOLE_MONITOR_WIN_H_ | 36 #endif // REMOTING_HOST_WIN_WTS_CONSOLE_MONITOR_H_ |
OLD | NEW |