#ifndef REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
#define REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "remoting/host/basic_desktop_environment.h"
namespace remoting {
class HostWindow;
class LocalInputMonitor;
class It2MeDesktopEnvironment : public BasicDesktopEnvironment {
public:
virtual ~It2MeDesktopEnvironment();
protected:
friend class It2MeDesktopEnvironmentFactory;
It2MeDesktopEnvironment(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
base::WeakPtr<ClientSessionControl> client_session_control);
private:
scoped_ptr<HostWindow> continue_window_;
scoped_ptr<HostWindow> disconnect_window_;
scoped_ptr<LocalInputMonitor> local_input_monitor_;
DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironment);
};
class It2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
public:
It2MeDesktopEnvironmentFactory(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
virtual ~It2MeDesktopEnvironmentFactory();
virtual scoped_ptr<DesktopEnvironment> Create(
base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironmentFactory);
};
}
#endif