// 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_ME2ME_DESKTOP_ENVIRONMENT_H_ #define REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ #include "remoting/host/basic_desktop_environment.h" namespace remoting { // Same as BasicDesktopEnvironment but supports desktop resizing and X DAMAGE // notifications on Linux. class Me2MeDesktopEnvironment : public BasicDesktopEnvironment { public: virtual ~Me2MeDesktopEnvironment(); // DesktopEnvironment interface. virtual scoped_ptr CreateScreenControls() OVERRIDE; virtual scoped_ptr CreateVideoCapturer() OVERRIDE; protected: friend class Me2MeDesktopEnvironmentFactory; Me2MeDesktopEnvironment( scoped_refptr caller_task_runner, scoped_refptr input_task_runner, scoped_refptr ui_task_runner, base::WeakPtr client_session_control, const UiStrings* ui_strings); private: DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironment); }; // Used to create |Me2MeDesktopEnvironment| instances. class Me2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory { public: Me2MeDesktopEnvironmentFactory( scoped_refptr caller_task_runner, scoped_refptr input_task_runner, scoped_refptr ui_task_runner, const UiStrings& ui_strings); virtual ~Me2MeDesktopEnvironmentFactory(); // DesktopEnvironmentFactory interface. virtual scoped_ptr Create( base::WeakPtr client_session_control) OVERRIDE; private: DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironmentFactory); }; } // namespace remoting #endif // REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_