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_WIN_WTS_TERMINAL_MONITOR_H_ | 5 #ifndef REMOTING_HOST_WIN_WTS_TERMINAL_MONITOR_H_ |
6 #define REMOTING_HOST_WIN_WTS_TERMINAL_MONITOR_H_ | 6 #define REMOTING_HOST_WIN_WTS_TERMINAL_MONITOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 | 12 |
13 namespace remoting { | 13 namespace remoting { |
14 | 14 |
15 class WtsTerminalObserver; | 15 class WtsTerminalObserver; |
16 | 16 |
17 // Session id that does not represent any session. | 17 // Session id that does not represent any session. |
18 extern const uint32 kInvalidSessionId; | 18 extern const uint32 kInvalidSessionId; |
19 | 19 |
20 class WtsTerminalMonitor { | 20 class WtsTerminalMonitor { |
21 public: | 21 public: |
22 // The console terminal ID. | 22 // The console terminal ID. |
23 static const char* kConsole; | 23 static const char kConsole[]; |
24 | 24 |
25 virtual ~WtsTerminalMonitor(); | 25 virtual ~WtsTerminalMonitor(); |
26 | 26 |
27 // Registers an observer to receive notifications about a particular WTS | 27 // Registers an observer to receive notifications about a particular WTS |
28 // terminal. |terminal_id| is used to specify an RdpClient instance for which | 28 // terminal. |terminal_id| is used to specify an RdpClient instance for which |
29 // the connected session should be monitored, or |kConsole| may be passed to | 29 // the connected session should be monitored, or |kConsole| may be passed to |
30 // monitor the console session. | 30 // monitor the console session. |
31 // | 31 // |
32 // Each observer instance can monitor a single WTS console. Returns | 32 // Each observer instance can monitor a single WTS console. Returns |
33 // |true| of success. Returns |false| if |observer| is already registered. | 33 // |true| of success. Returns |false| if |observer| is already registered. |
(...skipping 16 matching lines...) Expand all Loading... |
50 protected: | 50 protected: |
51 WtsTerminalMonitor(); | 51 WtsTerminalMonitor(); |
52 | 52 |
53 private: | 53 private: |
54 DISALLOW_COPY_AND_ASSIGN(WtsTerminalMonitor); | 54 DISALLOW_COPY_AND_ASSIGN(WtsTerminalMonitor); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace remoting | 57 } // namespace remoting |
58 | 58 |
59 #endif // REMOTING_HOST_WIN_WTS_TERMINAL_MONITOR_H_ | 59 #endif // REMOTING_HOST_WIN_WTS_TERMINAL_MONITOR_H_ |
OLD | NEW |