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

Unified Diff: device/serial/serial_io_handler_posix.h

Issue 646053002: Implement permission_broker for serial devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix device_unittests. Created 6 years, 2 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.cc ('k') | device/serial/serial_io_handler_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_posix.h
diff --git a/device/serial/serial_io_handler_posix.h b/device/serial/serial_io_handler_posix.h
index ef4bd377b321a47febb45c567a1e5b735cf483f1..7a6d97cb21c1127735f795f22a3c26b4a1403d01 100644
--- a/device/serial/serial_io_handler_posix.h
+++ b/device/serial/serial_io_handler_posix.h
@@ -24,13 +24,18 @@ class SerialIoHandlerPosix : public SerialIoHandler,
const serial::HostControlSignals& control_signals) override;
virtual bool ConfigurePort(const serial::ConnectionOptions& options) override;
virtual serial::ConnectionInfoPtr GetPortInfo() const override;
+ virtual void RequestAccess(
+ const std::string& port,
+ scoped_refptr<base::MessageLoopProxy> file_message_loop,
+ scoped_refptr<base::MessageLoopProxy> ui_message_loop) override;
virtual bool PostOpen() override;
private:
friend class SerialIoHandler;
SerialIoHandlerPosix(
- scoped_refptr<base::MessageLoopProxy> file_thread_message_loop);
+ scoped_refptr<base::MessageLoopProxy> file_thread_message_loop,
+ scoped_refptr<base::MessageLoopProxy> ui_thread_message_loop);
virtual ~SerialIoHandlerPosix();
// base::MessageLoopForIO::Watcher implementation.
« no previous file with comments | « device/serial/serial_io_handler.cc ('k') | device/serial/serial_io_handler_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698