OLD | NEW |
---|---|
(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 "remoting/protocol/input_stub.h" | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "ipc/ipc_channel.h" | |
13 | |
14 #include "remoting/host/event_executor.h" | |
15 | |
16 class MessageLoop; | |
17 | |
18 namespace base { | |
19 | |
20 class MessageLoopProxy; | |
Wez
2012/03/08 22:58:55
nit: Does the style guide require that there be bl
alexeypa (please no reviews)
2012/03/09 01:13:54
Done.
| |
21 | |
22 } // namespace base | |
23 | |
24 namespace IPC { | |
25 | |
26 class ChannelProxy; | |
27 | |
28 } // namespace IPC | |
29 | |
30 namespace remoting { | |
31 | |
32 class SessionEventExecutor : public EventExecutor, | |
Wez
2012/03/08 22:58:55
nit: SessionEventExecutorWin, to match the guard &
Wez
2012/03/08 22:58:55
public EventExecutor -> public InputStub
Wez
2012/03/08 22:58:55
I'm not convinced by the name; what is "session" a
alexeypa (please no reviews)
2012/03/09 01:13:54
Done.
alexeypa (please no reviews)
2012/03/09 01:13:54
Done.
alexeypa (please no reviews)
2012/03/09 01:13:54
This class's responsibility is handling of session
Wez
2012/03/09 22:24:34
Except that this implementation only makes sense i
| |
33 public IPC::Channel::Listener { | |
34 public: | |
35 SessionEventExecutor(MessageLoop* message_loop, | |
Wez
2012/03/08 22:58:55
It's not clear what this class does with |message_
alexeypa (please no reviews)
2012/03/09 01:13:54
It does the same thing as other EventExecutor clas
Wez
2012/03/09 22:24:34
Yes, I know that. My point is that it's not at al
| |
36 base::MessageLoopProxy* io_message_loop, | |
37 scoped_ptr<EventExecutor> nested_executor); | |
Wez
2012/03/08 22:58:55
scoped_ptr<EventExecutor> -> scoped_ptr<InputStub>
alexeypa (please no reviews)
2012/03/09 01:13:54
Done.
| |
38 ~SessionEventExecutor(); | |
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 // IPC::Channel::Listener implementation. | |
45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
46 | |
47 private: | |
48 // Pointer to the next event executor. | |
49 scoped_ptr<EventExecutor> nested_executor_; | |
50 | |
51 MessageLoop* message_loop_; | |
52 | |
53 // The Chromoting IPC channel connecting the host with the service. | |
54 scoped_ptr<IPC::ChannelProxy> chromoting_channel_; | |
55 | |
56 bool scroll_pressed_; | |
57 | |
58 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutor); | |
59 }; | |
60 | |
61 } // namespace remoting | |
62 | |
63 #endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ | |
OLD | NEW |