Index: remoting/host/session_event_executor_win.h |
diff --git a/remoting/host/session_event_executor_win.h b/remoting/host/session_event_executor_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab6448d6866211ec8bdd03379ae98f483459f700 |
--- /dev/null |
+++ b/remoting/host/session_event_executor_win.h |
@@ -0,0 +1,63 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |
+#define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |
+ |
+#include "remoting/protocol/input_stub.h" |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "ipc/ipc_channel.h" |
+ |
+#include "remoting/host/event_executor.h" |
+ |
+class MessageLoop; |
+ |
+namespace base { |
+ |
+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.
|
+ |
+} // namespace base |
+ |
+namespace IPC { |
+ |
+class ChannelProxy; |
+ |
+} // namespace IPC |
+ |
+namespace remoting { |
+ |
+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
|
+ public IPC::Channel::Listener { |
+ public: |
+ 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
|
+ base::MessageLoopProxy* io_message_loop, |
+ 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.
|
+ ~SessionEventExecutor(); |
+ |
+ // protocol::InputStub implementation. |
+ virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
+ virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
+ |
+ // IPC::Channel::Listener implementation. |
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ |
+ private: |
+ // Pointer to the next event executor. |
+ scoped_ptr<EventExecutor> nested_executor_; |
+ |
+ MessageLoop* message_loop_; |
+ |
+ // The Chromoting IPC channel connecting the host with the service. |
+ scoped_ptr<IPC::ChannelProxy> chromoting_channel_; |
+ |
+ bool scroll_pressed_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SessionEventExecutor); |
+}; |
+ |
+} // namespace remoting |
+ |
+#endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |