// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ #include "base/basictypes.h" #include "base/callback.h" #include "base/compiler_specific.h" #include "base/memory/ref_counted.h" #include "remoting/host/me2me_desktop_environment.h" namespace remoting { // Used to create audio/video capturers and event executor that are compatible // with Windows sessions. class SessionDesktopEnvironment : public Me2MeDesktopEnvironment { public: ~SessionDesktopEnvironment() override; // DesktopEnvironment implementation. scoped_ptr CreateInputInjector() override; private: friend class SessionDesktopEnvironmentFactory; SessionDesktopEnvironment( scoped_refptr caller_task_runner, scoped_refptr input_task_runner, scoped_refptr ui_task_runner, const base::Closure& inject_sas, bool supports_touch_events); // Used to ask the daemon to inject Secure Attention Sequence. base::Closure inject_sas_; DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment); }; // Used to create |SessionDesktopEnvironment| instances. class SessionDesktopEnvironmentFactory : public Me2MeDesktopEnvironmentFactory { public: SessionDesktopEnvironmentFactory( scoped_refptr caller_task_runner, scoped_refptr input_task_runner, scoped_refptr ui_task_runner, const base::Closure& inject_sas); ~SessionDesktopEnvironmentFactory() override; // DesktopEnvironmentFactory implementation. scoped_ptr Create( base::WeakPtr client_session_control) override; private: // Used to ask the daemon to inject Secure Attention Sequence. base::Closure inject_sas_; DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); }; } // namespace remoting #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_