Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1059)

Side by Side Diff: remoting/host/session_event_executor_win.h

Issue 10915206: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/host/session_event_executor_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
6 #define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
7
8 #include <set>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h"
13 #include "remoting/host/event_executor.h"
14 #include "remoting/host/win/scoped_thread_desktop.h"
15
16 namespace base {
17 class SingleThreadTaskRunner;
18 } // namespace base
19
20 namespace remoting {
21
22 class SasInjector;
23
24 class SessionEventExecutorWin : public EventExecutor {
25 public:
26 SessionEventExecutorWin(
27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
28 scoped_ptr<EventExecutor> nested_executor);
29 ~SessionEventExecutorWin();
30
31 // EventExecutor implementation.
32 virtual void OnSessionStarted(
33 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE;
34 virtual void OnSessionFinished() OVERRIDE;
35
36 // protocol::ClipboardStub implementation.
37 virtual void InjectClipboardEvent(
38 const protocol::ClipboardEvent& event) OVERRIDE;
39
40 // protocol::InputStub implementation.
41 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE;
42 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE;
43
44 private:
45 // Switches to the desktop receiving a user input if different from
46 // the current one.
47 void SwitchToInputDesktop();
48
49 // Pointer to the next event executor.
50 scoped_ptr<EventExecutor> nested_executor_;
51
52 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
53
54 ScopedThreadDesktop desktop_;
55
56 scoped_ptr<SasInjector> sas_injector_;
57
58 // Keys currently pressed by the client, used to detect Ctrl-Alt-Del.
59 std::set<uint32> pressed_keys_;
60
61 base::WeakPtrFactory<SessionEventExecutorWin> weak_ptr_factory_;
62 base::WeakPtr<SessionEventExecutorWin> weak_ptr_;
63
64 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin);
65 };
66
67 } // namespace remoting
68
69 #endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
OLDNEW
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/host/session_event_executor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698