| 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..fe1954fbed8c9dcf0baf1fb6cd7d809af352bc44 100644
|
| --- a/device/serial/serial_io_handler.h
|
| +++ b/device/serial/serial_io_handler.h
|
| @@ -105,6 +105,8 @@ class SerialIoHandler : public base::NonThreadSafe,
|
| // state.
|
| virtual bool ClearBreak() = 0;
|
|
|
| + void set_port(const std::string& port) { port_ = port; }
|
| +
|
| protected:
|
| explicit SerialIoHandler(
|
| scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
|
| @@ -190,6 +192,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 +233,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);
|
| };
|
|
|
|
|