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_SESSION_EVENT_EXECUTOR_WIN_H_ | 5 #ifndef REMOTING_HOST_WIN_SESSION_EVENT_EXECUTOR_H_ |
6 #define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ | 6 #define REMOTING_HOST_WIN_SESSION_EVENT_EXECUTOR_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "remoting/host/event_executor.h" | 13 #include "remoting/host/event_executor.h" |
14 #include "remoting/host/win/scoped_thread_desktop.h" | 14 #include "remoting/host/win/scoped_thread_desktop.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
18 } // namespace base | 18 } // namespace base |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 | 21 |
22 class SasInjector; | 22 class SasInjector; |
23 | 23 |
24 class SessionEventExecutorWin : public EventExecutor { | 24 class SessionEventExecutorWin : public EventExecutor { |
25 public: | 25 public: |
26 SessionEventExecutorWin( | 26 SessionEventExecutorWin( |
27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
28 scoped_ptr<EventExecutor> nested_executor); | 28 scoped_ptr<EventExecutor> nested_executor); |
29 ~SessionEventExecutorWin(); | 29 ~SessionEventExecutorWin(); |
30 | 30 |
31 // EventExecutor implementation. | 31 // EventExecutor implementation. |
32 virtual void OnSessionStarted( | 32 virtual void Start( |
33 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE; | 33 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE; |
34 virtual void OnSessionFinished() OVERRIDE; | 34 virtual void StopAndDelete() OVERRIDE; |
35 | 35 |
36 // protocol::ClipboardStub implementation. | 36 // protocol::ClipboardStub implementation. |
37 virtual void InjectClipboardEvent( | 37 virtual void InjectClipboardEvent( |
38 const protocol::ClipboardEvent& event) OVERRIDE; | 38 const protocol::ClipboardEvent& event) OVERRIDE; |
39 | 39 |
40 // protocol::InputStub implementation. | 40 // protocol::InputStub implementation. |
41 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; | 41 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
42 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; | 42 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
43 | 43 |
44 private: | 44 private: |
(...skipping 14 matching lines...) Expand all Loading... |
59 std::set<uint32> pressed_keys_; | 59 std::set<uint32> pressed_keys_; |
60 | 60 |
61 base::WeakPtrFactory<SessionEventExecutorWin> weak_ptr_factory_; | 61 base::WeakPtrFactory<SessionEventExecutorWin> weak_ptr_factory_; |
62 base::WeakPtr<SessionEventExecutorWin> weak_ptr_; | 62 base::WeakPtr<SessionEventExecutorWin> weak_ptr_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin); | 64 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace remoting | 67 } // namespace remoting |
68 | 68 |
69 #endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ | 69 #endif // REMOTING_HOST_WIN_SESSION_EVENT_EXECUTOR_H_ |
OLD | NEW |