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
3 // found in the LICENSE file.
4 
5 #ifndef REMOTING_HOST_WIN_WTS_TERMINAL_OBSERVER_H_
6 #define REMOTING_HOST_WIN_WTS_TERMINAL_OBSERVER_H_
7 
8 #include <windows.h>
9 #include <stdint.h>
10 
11 #include "base/macros.h"
12 
13 namespace remoting {
14 
15 // Provides callbacks for monitoring events on a WTS terminal.
16 class WtsTerminalObserver {
17  public:
~WtsTerminalObserver()18   virtual ~WtsTerminalObserver() {}
19 
20   // Called when |session_id| attaches to the console.
21   virtual void OnSessionAttached(uint32_t session_id) = 0;
22 
23   // Called when a session detaches from the console.
24   virtual void OnSessionDetached() = 0;
25 
26  protected:
WtsTerminalObserver()27   WtsTerminalObserver() {}
28 
29  private:
30   DISALLOW_COPY_AND_ASSIGN(WtsTerminalObserver);
31 };
32 
33 }  // namespace remoting
34 
35 #endif  // REMOTING_HOST_WIN_WTS_TERMINAL_OBSERVER_H_
36