OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "remoting/base/scoped_thread_proxy.h" | 14 #include "remoting/base/scoped_thread_proxy.h" |
15 #include "remoting/host/event_executor.h" | 15 #include "remoting/host/event_executor.h" |
16 #include "remoting/protocol/clipboard_proxy.h" | |
16 | 17 |
17 namespace remoting { | 18 namespace remoting { |
18 | 19 |
19 class Capturer; | 20 class Capturer; |
20 class ChromotingHost; | 21 class ChromotingHost; |
21 class ChromotingHostContext; | 22 class ChromotingHostContext; |
22 | 23 |
23 namespace protocol { | 24 namespace protocol { |
24 class HostEventStub; | 25 class HostEventStub; |
25 }; | 26 }; |
(...skipping 12 matching lines...) Expand all Loading... | |
38 ChromotingHostContext* context, | 39 ChromotingHostContext* context, |
39 scoped_ptr<Capturer> capturer, | 40 scoped_ptr<Capturer> capturer, |
40 scoped_ptr<EventExecutor> event_executor); | 41 scoped_ptr<EventExecutor> event_executor); |
41 | 42 |
42 virtual ~DesktopEnvironment(); | 43 virtual ~DesktopEnvironment(); |
43 | 44 |
44 void set_host(ChromotingHost* host) { host_ = host; } | 45 void set_host(ChromotingHost* host) { host_ = host; } |
45 | 46 |
46 Capturer* capturer() const { return capturer_.get(); } | 47 Capturer* capturer() const { return capturer_.get(); } |
47 EventExecutor* event_executor() const { return event_executor_.get(); } | 48 EventExecutor* event_executor() const { return event_executor_.get(); } |
48 void OnSessionStarted(); | 49 void OnSessionStarted( |
50 const scoped_refptr<protocol::ClipboardProxy>& client_clipboard); | |
Wez
2012/05/30 01:15:43
If you switch ClientSession::ClientClipboard to re
| |
49 void OnSessionFinished(); | 51 void OnSessionFinished(); |
50 | 52 |
51 private: | 53 private: |
52 DesktopEnvironment(ChromotingHostContext* context, | 54 DesktopEnvironment(ChromotingHostContext* context, |
53 scoped_ptr<Capturer> capturer, | 55 scoped_ptr<Capturer> capturer, |
54 scoped_ptr<EventExecutor> event_executor); | 56 scoped_ptr<EventExecutor> event_executor); |
55 | 57 |
56 // The host that owns this DesktopEnvironment. | 58 // The host that owns this DesktopEnvironment. |
57 ChromotingHost* host_; | 59 ChromotingHost* host_; |
58 | 60 |
59 // Host context used to make sure operations are run on the correct thread. | 61 // Host context used to make sure operations are run on the correct thread. |
60 // This is owned by the ChromotingHost. | 62 // This is owned by the ChromotingHost. |
61 ChromotingHostContext* context_; | 63 ChromotingHostContext* context_; |
62 | 64 |
63 // Capturer to be used by ScreenRecorder. | 65 // Capturer to be used by ScreenRecorder. |
64 scoped_ptr<Capturer> capturer_; | 66 scoped_ptr<Capturer> capturer_; |
65 | 67 |
66 // Executes input and clipboard events received from the client. | 68 // Executes input and clipboard events received from the client. |
67 scoped_ptr<EventExecutor> event_executor_; | 69 scoped_ptr<EventExecutor> event_executor_; |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); | 71 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); |
70 }; | 72 }; |
71 | 73 |
72 } // namespace remoting | 74 } // namespace remoting |
73 | 75 |
74 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 76 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |