blob: 10276ed36b4c46ddd582dd4dd4170e327f903c24 [file] [log] [blame]
// Copyright 2014 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_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
#define REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
#include "base/macros.h"
#include "base/single_thread_task_runner.h"
#include "remoting/host/basic_desktop_environment.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
namespace remoting {
// Passed to the ChromotingHost to remote an individual window's contents,
// rather than a whole desktop.
class SingleWindowDesktopEnvironmentFactory
: public BasicDesktopEnvironmentFactory {
public:
SingleWindowDesktopEnvironmentFactory(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
ui::SystemInputInjectorFactory* system_input_injector_factory,
webrtc::WindowId window_id);
~SingleWindowDesktopEnvironmentFactory() override;
// DesktopEnvironmentFactory interface.
std::unique_ptr<DesktopEnvironment> Create(
base::WeakPtr<ClientSessionControl> client_session_control,
const DesktopEnvironmentOptions& options) override;
private:
webrtc::WindowId window_id_;
DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory);
};
} // namespace remoting
#endif // REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_