Chromium Code Reviews| 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_WTS_CONSOLE_MONITOR_WIN_H_ |
| 6 #define REMOTING_HOST_WTS_CONSOLE_MONITOR_WIN_H_ | 6 #define REMOTING_HOST_WTS_CONSOLE_MONITOR_WIN_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 // Requests removal of a previously registered observer. | |
|
Wez
2012/04/11 01:01:23
What's the difference between unregistering and re
alexeypa (please no reviews)
2012/04/11 17:39:39
I've reworded the comment.
| |
| 28 virtual void RequestRemoveWtsConsoleObserver( | |
| 29 WtsConsoleObserver* observer) = 0; | |
| 30 | |
| 27 protected: | 31 protected: |
| 28 WtsConsoleMonitor() {} | 32 WtsConsoleMonitor() {} |
| 29 | 33 |
| 30 private: | 34 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(WtsConsoleMonitor); | 35 DISALLOW_COPY_AND_ASSIGN(WtsConsoleMonitor); |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 } // namespace remoting | 38 } // namespace remoting |
| 35 | 39 |
| 36 #endif // REMOTING_HOST_WTS_CONSOLE_MONITOR_WIN_H_ | 40 #endif // REMOTING_HOST_WTS_CONSOLE_MONITOR_WIN_H_ |
| OLD | NEW |