| 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..83ccd07675596f1f66cbf9e6469ecdc2ccb4324b
|
| --- /dev/null
|
| +++ b/remoting/host/session_event_executor_win.h
|
| @@ -0,0 +1,68 @@
|
| +// 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;
|
| +
|
| +} // namespace base
|
| +
|
| +namespace IPC {
|
| +
|
| +class ChannelProxy;
|
| +
|
| +} // namespace IPC
|
| +
|
| +namespace remoting {
|
| +
|
| +class SessionEventExecutor : public EventExecutor,
|
| + public IPC::Channel::Listener {
|
| + public:
|
| + SessionEventExecutor(MessageLoop* message_loop,
|
| + base::MessageLoopProxy* io_message_loop,
|
| + scoped_ptr<EventExecutor> nested_executor);
|
| + ~SessionEventExecutor();
|
| +/*
|
| + // Creates an event executor for session-related events on Windows.
|
| + // Does not take ownership of |message_loop| or |io_message_loop|.
|
| + static EventExecutor* Create(MessageLoop* message_loop,
|
| + base::MessageLoopProxy* io_message_loop);
|
| +*/
|
| + // 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_;
|
| +
|
| + // IPC channel connecting the host with the chromoting service.
|
| + scoped_ptr<IPC::ChannelProxy> chromoting_session_;
|
| +
|
| + bool scroll_pressed_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SessionEventExecutor);
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_
|
|
|