blob: 368a6ab6d57082bace2d0c692325676c12037425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// Copyright 2013 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_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;
// Same as BasicDesktopEnvironment but also presents the Continue window to
// the local user.
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:
// Presents the continue window to the local user.
scoped_ptr<HostWindow> continue_window_;
// Presents the disconnect window to the local user.
scoped_ptr<HostWindow> disconnect_window_;
// Notifies the client session about the local mouse movements.
scoped_ptr<LocalInputMonitor> local_input_monitor_;
DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironment);
};
// Used to create |It2MeDesktopEnvironment| instances.
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();
// DesktopEnvironmentFactory interface.
virtual scoped_ptr<DesktopEnvironment> Create(
base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironmentFactory);
};
} // namespace remoting
#endif // REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
|