| OLD | NEW |
| (Empty) | |
| 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_SESSION_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "remoting/host/basic_desktop_environment.h" |
| 13 |
| 14 namespace remoting { |
| 15 |
| 16 // Used to create audio/video capturers and event executor that are compatible |
| 17 // with Windows sessions. |
| 18 class SessionDesktopEnvironment : public BasicDesktopEnvironment { |
| 19 public: |
| 20 explicit SessionDesktopEnvironment(const base::Closure& inject_sas); |
| 21 virtual ~SessionDesktopEnvironment(); |
| 22 |
| 23 // DesktopEnvironment implementation. |
| 24 virtual scoped_ptr<EventExecutor> CreateEventExecutor( |
| 25 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 26 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE; |
| 27 |
| 28 private: |
| 29 // Used to ask the daemon to inject Secure Attention Sequence. |
| 30 base::Closure inject_sas_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment); |
| 33 }; |
| 34 |
| 35 // Used to create |SessionDesktopEnvironment| instances. |
| 36 class SessionDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory { |
| 37 public: |
| 38 explicit SessionDesktopEnvironmentFactory(const base::Closure& inject_sas); |
| 39 virtual ~SessionDesktopEnvironmentFactory(); |
| 40 |
| 41 // DesktopEnvironmentFactory implementation. |
| 42 virtual scoped_ptr<DesktopEnvironment> Create( |
| 43 const std::string& client_jid, |
| 44 const base::Closure& disconnect_callback) OVERRIDE; |
| 45 |
| 46 private: |
| 47 // Used to ask the daemon to inject Secure Attention Sequence. |
| 48 base::Closure inject_sas_; |
| 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); |
| 51 }; |
| 52 |
| 53 } // namespace remoting |
| 54 |
| 55 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |