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

Unified Diff: device/serial/serial_io_handler.h

Issue 646053002: Implement permission_broker for serial devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | device/serial/serial_io_handler.cc » ('j') | device/serial/serial_io_handler_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler.h
diff --git a/device/serial/serial_io_handler.h b/device/serial/serial_io_handler.h
index 5b2d0592db6983e52e65c67014fb01cf81d91ab7..9ceb884b2569f4839f81f342e086427815f4e38d 100644
--- a/device/serial/serial_io_handler.h
+++ b/device/serial/serial_io_handler.h
@@ -32,6 +32,9 @@ class SerialIoHandler : public base::NonThreadSafe,
virtual void Open(const std::string& port,
const OpenCompleteCallback& callback);
+ // TODO: Comment.
+ void OnRequestAccessComplete(const std::string& port, bool success);
+
// Performs an async Read operation. Behavior is undefined if this is called
// while a Read is already pending. Otherwise, the Done or DoneWithError
// method on |buffer| will eventually be called with a result.
@@ -102,6 +105,11 @@ class SerialIoHandler : public base::NonThreadSafe,
// Platform-specific write cancelation.
virtual void CancelWriteImpl() = 0;
+ // TODO: Comment.
+ virtual void RequestAccess(
+ const std::string& port,
+ scoped_refptr<base::MessageLoopProxy> io_message_loop);
+
// Performs platform-specific, one-time port configuration on open.
virtual bool PostOpen();
« no previous file with comments | « no previous file | device/serial/serial_io_handler.cc » ('j') | device/serial/serial_io_handler_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698