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

Unified Diff: device/serial/serial_service_impl.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 | « device/serial/serial_io_handler_win.cc ('k') | device/serial/serial_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_service_impl.h
diff --git a/device/serial/serial_service_impl.h b/device/serial/serial_service_impl.h
index b6387a84582710e4904dd8f0e7ea5de073b6b0b5..9ac5a10a32d91bbfa6c60df835fc83478f4cd9e9 100644
--- a/device/serial/serial_service_impl.h
+++ b/device/serial/serial_service_impl.h
@@ -6,7 +6,8 @@
#define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
#include "base/memory/scoped_ptr.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 "device/serial/serial_connection_factory.h"
@@ -23,13 +24,13 @@ class SerialServiceImpl : public mojo::InterfaceImpl<serial::SerialService> {
scoped_ptr<SerialDeviceEnumerator> device_enumerator);
~SerialServiceImpl() override;
- static void Create(scoped_refptr<base::MessageLoopProxy> io_message_loop,
- scoped_refptr<base::MessageLoopProxy> ui_message_loop,
+ static void Create(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
mojo::InterfaceRequest<serial::SerialService> request);
static void CreateOnMessageLoop(
- scoped_refptr<base::MessageLoopProxy> message_loop,
- scoped_refptr<base::MessageLoopProxy> io_message_loop,
- scoped_refptr<base::MessageLoopProxy> ui_message_loop,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
mojo::InterfaceRequest<serial::SerialService> request);
// mojo::InterfaceImpl<SerialService> overrides.
« no previous file with comments | « device/serial/serial_io_handler_win.cc ('k') | device/serial/serial_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698