| 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_observer_win_H_ | 5 #ifndef REMOTING_HOST_WTS_CONSOLE_OBSERVER_WIN_H_ |
| 6 #define REMOTING_HOST_wts_console_observer_win_H_ | 6 #define REMOTING_HOST_WTS_CONSOLE_OBSERVER_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 // Provides callbacks for monitoring events on a WTS terminal. | 14 // Provides callbacks for monitoring events on a WTS terminal. |
| 15 class WtsConsoleObserver { | 15 class WtsConsoleObserver { |
| 16 public: | 16 public: |
| 17 virtual ~WtsConsoleObserver() {} | 17 virtual ~WtsConsoleObserver() {} |
| 18 | 18 |
| 19 // Called when |session_id| attaches to the console. | 19 // Called when |session_id| attaches to the console. |
| 20 virtual void OnSessionAttached(uint32 session_id) = 0; | 20 virtual void OnSessionAttached(uint32 session_id) = 0; |
| 21 | 21 |
| 22 // Called when a session detaches from the console. | 22 // Called when a session detaches from the console. |
| 23 virtual void OnSessionDetached() = 0; | 23 virtual void OnSessionDetached() = 0; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 WtsConsoleObserver() {} | 26 WtsConsoleObserver() {} |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(WtsConsoleObserver); | 29 DISALLOW_COPY_AND_ASSIGN(WtsConsoleObserver); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace remoting | 32 } // namespace remoting |
| 33 | 33 |
| 34 #endif // REMOTING_HOST_wts_console_observer_win_H_ | 34 #endif // REMOTING_HOST_WTS_CONSOLE_OBSERVER_WIN_H_ |
| OLD | NEW |