// 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_DESKTOP_ENVIRONMENT_H_ #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" namespace remoting { class AudioCapturer; class EventExecutor; class VideoFrameCapturer; namespace protocol { class ClipboardStub; } class DesktopEnvironment { public: DesktopEnvironment(scoped_ptr audio_capturer, scoped_ptr event_executor, scoped_ptr video_capturer); virtual ~DesktopEnvironment(); AudioCapturer* audio_capturer() const { return audio_capturer_.get(); } EventExecutor* event_executor() const { return event_executor_.get(); } VideoFrameCapturer* video_capturer() const { return video_capturer_.get(); } virtual void Start( scoped_ptr client_clipboard); private: // Used to capture audio to deliver to clients. scoped_ptr audio_capturer_; // Executes input and clipboard events received from the client. scoped_ptr event_executor_; // Used to capture video to deliver to clients. scoped_ptr video_capturer_; DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); }; } // namespace remoting #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_