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_HOST_SERVICE_H_ | 5 #ifndef REMOTING_HOST_WIN_HOST_SERVICE_H_ |
6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ | 6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 20 matching lines...) Expand all Loading... |
31 static HostService* GetInstance(); | 31 static HostService* GetInstance(); |
32 | 32 |
33 // This function parses the command line and selects the action routine. | 33 // This function parses the command line and selects the action routine. |
34 bool InitWithCommandLine(const base::CommandLine* command_line); | 34 bool InitWithCommandLine(const base::CommandLine* command_line); |
35 | 35 |
36 // Invoke the choosen action routine. | 36 // Invoke the choosen action routine. |
37 int Run(); | 37 int Run(); |
38 | 38 |
39 // WtsTerminalMonitor implementation | 39 // WtsTerminalMonitor implementation |
40 virtual bool AddWtsTerminalObserver(const std::string& terminal_id, | 40 virtual bool AddWtsTerminalObserver(const std::string& terminal_id, |
41 WtsTerminalObserver* observer) OVERRIDE; | 41 WtsTerminalObserver* observer) override; |
42 virtual void RemoveWtsTerminalObserver( | 42 virtual void RemoveWtsTerminalObserver( |
43 WtsTerminalObserver* observer) OVERRIDE; | 43 WtsTerminalObserver* observer) override; |
44 | 44 |
45 private: | 45 private: |
46 HostService(); | 46 HostService(); |
47 ~HostService(); | 47 ~HostService(); |
48 | 48 |
49 // Notifies the service of changes in session state. | 49 // Notifies the service of changes in session state. |
50 void OnSessionChange(uint32 event, uint32 session_id); | 50 void OnSessionChange(uint32 event, uint32 session_id); |
51 | 51 |
52 // Creates the process launcher. | 52 // Creates the process launcher. |
53 void CreateLauncher(scoped_refptr<AutoThreadTaskRunner> task_runner); | 53 void CreateLauncher(scoped_refptr<AutoThreadTaskRunner> task_runner); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Singleton. | 124 // Singleton. |
125 friend struct DefaultSingletonTraits<HostService>; | 125 friend struct DefaultSingletonTraits<HostService>; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(HostService); | 127 DISALLOW_COPY_AND_ASSIGN(HostService); |
128 }; | 128 }; |
129 | 129 |
130 } // namespace remoting | 130 } // namespace remoting |
131 | 131 |
132 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ | 132 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ |
OLD | NEW |