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

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 reillgy@'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..c0fc3de577b1032b035253f9f19188d75e658ab9 100644
--- a/device/serial/serial_io_handler.h
+++ b/device/serial/serial_io_handler.h
@@ -190,6 +190,12 @@ 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);
+ scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner_;
+ // On Chrome OS, PermissionBrokerClient should be called on the UI thread.
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner_;
+
+ std::string port_;
+
private:
friend class base::RefCounted<SerialIoHandler>;
@@ -225,10 +231,6 @@ class SerialIoHandler : public base::NonThreadSafe,
// Callback to handle the completion of a pending Open() request.
OpenCompleteCallback open_complete_;
- scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner_;
- // On Chrome OS, PermissionBrokerClient should be called on the UI thread.
- scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner_;
-
DISALLOW_COPY_AND_ASSIGN(SerialIoHandler);
};

Powered by Google App Engine
This is Rietveld 408576698