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

Unified Diff: device/serial/serial_io_handler_win.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_win.h ('k') | device/serial/serial_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_win.cc
diff --git a/device/serial/serial_io_handler_win.cc b/device/serial/serial_io_handler_win.cc
index 275a18988e530de50edf874623be0d29e9ddb799..1ab4f88aa81fb1501d1f719d167448b23d920ded 100644
--- a/device/serial/serial_io_handler_win.cc
+++ b/device/serial/serial_io_handler_win.cc
@@ -133,8 +133,9 @@ serial::StopBits StopBitsConstantToEnum(int stop_bits) {
} // namespace
// static
-scoped_refptr<SerialIoHandler> SerialIoHandler::Create() {
- return new SerialIoHandlerWin();
+scoped_refptr<SerialIoHandler> SerialIoHandler::Create(
+ scoped_refptr<base::MessageLoopProxy> file_thread_message_loop) {
+ return new SerialIoHandlerWin(file_thread_message_loop);
}
bool SerialIoHandlerWin::PostOpen() {
@@ -237,8 +238,11 @@ void SerialIoHandlerWin::CancelWriteImpl() {
::CancelIo(file().GetPlatformFile());
}
-SerialIoHandlerWin::SerialIoHandlerWin()
- : event_mask_(0), is_comm_pending_(false) {
+SerialIoHandlerWin::SerialIoHandlerWin(
+ scoped_refptr<base::MessageLoopProxy> file_thread_message_loop)
+ : SerialIoHandler(file_thread_message_loop),
+ event_mask_(0),
+ is_comm_pending_(false) {
}
SerialIoHandlerWin::~SerialIoHandlerWin() {
« no previous file with comments | « device/serial/serial_io_handler_win.h ('k') | device/serial/serial_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698