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

Unified Diff: device/serial/serial_connection_factory.h

Issue 1107013002: [device] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments : Removal of message_loop_proxy header file Created 5 years, 8 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 | « no previous file | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection_factory.h
diff --git a/device/serial/serial_connection_factory.h b/device/serial/serial_connection_factory.h
index befb209c0825532fb7f89778abf267a4ed661442..6d22fffb682b181b121a705da6b4eecc88c76cb1 100644
--- a/device/serial/serial_connection_factory.h
+++ b/device/serial/serial_connection_factory.h
@@ -9,7 +9,8 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "device/serial/data_stream.mojom.h"
#include "device/serial/serial.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
@@ -25,7 +26,7 @@ class SerialConnectionFactory
SerialConnectionFactory(
const IoHandlerFactory& io_handler_factory,
- scoped_refptr<base::MessageLoopProxy> connect_message_loop);
+ scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner);
void CreateConnection(
const std::string& path,
@@ -42,7 +43,7 @@ class SerialConnectionFactory
virtual ~SerialConnectionFactory();
const IoHandlerFactory io_handler_factory_;
- scoped_refptr<base::MessageLoopProxy> connect_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner_;
DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory);
};
« no previous file with comments | « no previous file | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698