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_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ | 5 #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ |
6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ | 6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ |
7 | 7 |
| 8 #include "base/callback.h" |
8 #include "remoting/host/desktop_environment_factory.h" | 9 #include "remoting/host/desktop_environment_factory.h" |
9 | 10 |
10 namespace remoting { | 11 namespace remoting { |
11 | 12 |
12 class ClientSession; | 13 class ClientSession; |
13 | 14 |
14 class SessionDesktopEnvironmentFactory : public DesktopEnvironmentFactory { | 15 class SessionDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
15 public: | 16 public: |
16 SessionDesktopEnvironmentFactory( | 17 SessionDesktopEnvironmentFactory( |
17 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 18 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
18 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 19 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 20 const base::Closure& inject_sas); |
19 virtual ~SessionDesktopEnvironmentFactory(); | 21 virtual ~SessionDesktopEnvironmentFactory(); |
20 | 22 |
21 virtual scoped_ptr<DesktopEnvironment> Create(ClientSession* client) OVERRIDE; | 23 virtual scoped_ptr<DesktopEnvironment> Create(ClientSession* client) OVERRIDE; |
22 | 24 |
23 private: | 25 private: |
| 26 // Used to ask the daemon to inject Secure Attention Sequence. |
| 27 base::Closure inject_sas_; |
| 28 |
24 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); | 29 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); |
25 }; | 30 }; |
26 | 31 |
27 } // namespace remoting | 32 } // namespace remoting |
28 | 33 |
29 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ | 34 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ |
OLD | NEW |