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

Unified Diff: device/serial/serial_io_handler_posix.cc

Issue 401563002: Add a partial Mojo serial connection interface and implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 5 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_posix.h ('k') | device/serial/serial_io_handler_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_posix.cc
diff --git a/device/serial/serial_io_handler_posix.cc b/device/serial/serial_io_handler_posix.cc
index 806e49fbbfce4c1938462e3f08ff227943c9becc..0bb6d6598f5ebb2ac4bcd204362566c1cd0e3caf 100644
--- a/device/serial/serial_io_handler_posix.cc
+++ b/device/serial/serial_io_handler_posix.cc
@@ -122,8 +122,9 @@ bool SetCustomBitrate(base::PlatformFile file,
namespace device {
// static
-scoped_refptr<SerialIoHandler> SerialIoHandler::Create() {
- return new SerialIoHandlerPosix();
+scoped_refptr<SerialIoHandler> SerialIoHandler::Create(
+ scoped_refptr<base::MessageLoopProxy> file_thread_message_loop) {
+ return new SerialIoHandlerPosix(file_thread_message_loop);
}
void SerialIoHandlerPosix::ReadImpl() {
@@ -156,8 +157,11 @@ void SerialIoHandlerPosix::CancelWriteImpl() {
QueueWriteCompleted(0, write_cancel_reason());
}
-SerialIoHandlerPosix::SerialIoHandlerPosix()
- : is_watching_reads_(false), is_watching_writes_(false) {
+SerialIoHandlerPosix::SerialIoHandlerPosix(
+ scoped_refptr<base::MessageLoopProxy> file_thread_message_loop)
+ : SerialIoHandler(file_thread_message_loop),
+ is_watching_reads_(false),
+ is_watching_writes_(false) {
}
SerialIoHandlerPosix::~SerialIoHandlerPosix() {
« no previous file with comments | « device/serial/serial_io_handler_posix.h ('k') | device/serial/serial_io_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698