summaryrefslogtreecommitdiffstats
path: root/remoting/host/event_executor.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/event_executor.h')
-rw-r--r--remoting/host/event_executor.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/remoting/host/event_executor.h b/remoting/host/event_executor.h
index d033915..dfc0ff2a 100644
--- a/remoting/host/event_executor.h
+++ b/remoting/host/event_executor.h
@@ -5,14 +5,13 @@
#ifndef REMOTING_HOST_EVENT_EXECUTOR_H_
#define REMOTING_HOST_EVENT_EXECUTOR_H_
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/host_event_stub.h"
-class MessageLoop;
-
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
} // namespace base
namespace remoting {
@@ -21,12 +20,14 @@ class Capturer;
class EventExecutor : public protocol::HostEventStub {
public:
- // Creates a default event executor for the current platform.
- // This object should do as much work as possible on |message_loop|, using
- // |ui_loop| only when necessary.
- static scoped_ptr<EventExecutor> Create(MessageLoop* message_loop,
- base::MessageLoopProxy* ui_loop,
- Capturer* capturer);
+ // Creates a default event executor for the current platform. This
+ // object should do as much work as possible on |main_task_runner|,
+ // using |ui_task_runner| only for tasks actually requiring a UI
+ // thread.
+ static scoped_ptr<EventExecutor> Create(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ Capturer* capturer);
// Initialises any objects needed to execute events.
virtual void OnSessionStarted(