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_SESSION_EVENT_EXECUTOR_WIN_H_ |
6 #define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ | 6 #define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_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 "ipc/ipc_channel.h" | 13 #include "ipc/ipc_channel.h" |
14 | |
15 #include "remoting/host/event_executor.h" | 14 #include "remoting/host/event_executor.h" |
16 #include "remoting/host/scoped_thread_desktop_win.h" | 15 #include "remoting/host/win/scoped_thread_desktop.h" |
17 #include "remoting/protocol/host_event_stub.h" | 16 #include "remoting/protocol/host_event_stub.h" |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
21 } // namespace base | 20 } // namespace base |
22 | 21 |
23 namespace IPC { | 22 namespace IPC { |
24 class ChannelProxy; | 23 class ChannelProxy; |
25 } // namespace IPC | 24 } // namespace IPC |
26 | 25 |
(...skipping 25 matching lines...) Expand all Loading... |
52 private: | 51 private: |
53 // Switches to the desktop receiving a user input if different from | 52 // Switches to the desktop receiving a user input if different from |
54 // the current one. | 53 // the current one. |
55 void SwitchToInputDesktop(); | 54 void SwitchToInputDesktop(); |
56 | 55 |
57 // Pointer to the next event executor. | 56 // Pointer to the next event executor. |
58 scoped_ptr<EventExecutor> nested_executor_; | 57 scoped_ptr<EventExecutor> nested_executor_; |
59 | 58 |
60 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 59 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
61 | 60 |
62 ScopedThreadDesktopWin desktop_; | 61 ScopedThreadDesktop desktop_; |
63 | 62 |
64 // The Chromoting IPC channel connecting the host with the service. | 63 // The Chromoting IPC channel connecting the host with the service. |
65 scoped_ptr<IPC::ChannelProxy> chromoting_channel_; | 64 scoped_ptr<IPC::ChannelProxy> chromoting_channel_; |
66 | 65 |
67 // Keys currently pressed by the client, used to detect Ctrl-Alt-Del. | 66 // Keys currently pressed by the client, used to detect Ctrl-Alt-Del. |
68 std::set<uint32> pressed_keys_; | 67 std::set<uint32> pressed_keys_; |
69 | 68 |
70 base::WeakPtrFactory<SessionEventExecutorWin> weak_ptr_factory_; | 69 base::WeakPtrFactory<SessionEventExecutorWin> weak_ptr_factory_; |
71 base::WeakPtr<SessionEventExecutorWin> weak_ptr_; | 70 base::WeakPtr<SessionEventExecutorWin> weak_ptr_; |
72 | 71 |
73 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin); | 72 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin); |
74 }; | 73 }; |
75 | 74 |
76 } // namespace remoting | 75 } // namespace remoting |
77 | 76 |
78 #endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ | 77 #endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |
OLD | NEW |