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

Unified Diff: device/serial/serial_io_handler.h

Issue 1439443002: Reland: Add code to deal with serial device disconnection detection on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address grt@'s comments Created 5 years, 1 month 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
Index: device/serial/serial_io_handler.h
diff --git a/device/serial/serial_io_handler.h b/device/serial/serial_io_handler.h
index 81d70282a00188dce960ca65308b6d3e119707ce..63e6c90a36a7f45ea865f15807318b05ec0031e1 100644
--- a/device/serial/serial_io_handler.h
+++ b/device/serial/serial_io_handler.h
@@ -190,6 +190,16 @@ class SerialIoHandler : public base::NonThreadSafe,
// Possibly fixes up a serial port path name in a platform-specific manner.
static std::string MaybeFixUpPortName(const std::string& port_name);
+ base::SingleThreadTaskRunner* file_thread_task_runner() const {
+ return file_thread_task_runner_.get();
+ }
+
+ base::SingleThreadTaskRunner* ui_thread_task_runner() const {
+ return ui_thread_task_runner_.get();
+ }
+
+ const std::string& port() const { return port_; }
+
private:
friend class base::RefCounted<SerialIoHandler>;
@@ -229,6 +239,8 @@ class SerialIoHandler : public base::NonThreadSafe,
// On Chrome OS, PermissionBrokerClient should be called on the UI thread.
scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner_;
+ std::string port_;
+
DISALLOW_COPY_AND_ASSIGN(SerialIoHandler);
};

Powered by Google App Engine
This is Rietveld 408576698