Index: content/renderer/input/input_event_filter.h |
diff --git a/content/renderer/input/input_event_filter.h b/content/renderer/input/input_event_filter.h |
index a80b9f8c625b24307b5f2f6fea9533d8472beabd..9a8771eaaf5eb50741a632b46c9f85de5ad1c889 100644 |
--- a/content/renderer/input/input_event_filter.h |
+++ b/content/renderer/input/input_event_filter.h |
@@ -18,6 +18,7 @@ |
namespace base { |
class MessageLoopProxy; |
+class SingleThreadTaskRunner; |
} |
namespace IPC { |
@@ -39,7 +40,8 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient, |
public IPC::MessageFilter { |
public: |
InputEventFilter(IPC::Listener* main_listener, |
- const scoped_refptr<base::MessageLoopProxy>& target_loop); |
+ const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
+ const scoped_refptr<base::MessageLoopProxy>& target_loop); |
// The |handler| is invoked on the thread associated with |target_loop| to |
// handle input events matching the filtered routes. |
@@ -73,8 +75,8 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient, |
void SendMessage(scoped_ptr<IPC::Message> message); |
void SendMessageOnIOThread(scoped_ptr<IPC::Message> message); |
- scoped_refptr<base::MessageLoopProxy> main_loop_; |
IPC::Listener* main_listener_; |
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
// The sender_ only gets invoked on the thread corresponding to io_loop_. |
scoped_refptr<base::MessageLoopProxy> io_loop_; |