Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: remoting/host/session_event_executor_win.h

Issue 10572005: Use SingleThreadTaskRunner instead of MessageLoopProxy in remoting/host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/host/session_event_executor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 0778b56a9d3bc77cf17154408909c05169b0703b..4ac364e189de4801f5cbe5307566ed36ce3978e3 100644
--- a/remoting/host/session_event_executor_win.h
+++ b/remoting/host/session_event_executor_win.h
@@ -16,10 +16,8 @@
#include "remoting/host/scoped_thread_desktop_win.h"
#include "remoting/protocol/host_event_stub.h"
-class MessageLoop;
-
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
} // namespace base
namespace IPC {
@@ -31,9 +29,10 @@ namespace remoting {
class SessionEventExecutorWin : public EventExecutor,
public IPC::Listener {
public:
- SessionEventExecutorWin(MessageLoop* message_loop,
- base::MessageLoopProxy* io_message_loop,
- scoped_ptr<EventExecutor> nested_executor);
+ SessionEventExecutorWin(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
+ scoped_ptr<EventExecutor> nested_executor);
~SessionEventExecutorWin();
// EventExecutor implementation.
@@ -58,7 +57,7 @@ class SessionEventExecutorWin : public EventExecutor,
// Pointer to the next event executor.
scoped_ptr<EventExecutor> nested_executor_;
- MessageLoop* message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
ScopedThreadDesktopWin desktop_;
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/host/session_event_executor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698