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

Unified Diff: chromeos/binder/command_broker.h

Issue 1575313002: Add CommandBroker::OnTransaction to handle incoming transactions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 11 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 | chromeos/binder/command_broker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/binder/command_broker.h
diff --git a/chromeos/binder/command_broker.h b/chromeos/binder/command_broker.h
index bfca14270356141300d0dacff089b8cc7cc23a3a..4413e620ac36492155d9e9999c0d06a71831156f 100644
--- a/chromeos/binder/command_broker.h
+++ b/chromeos/binder/command_broker.h
@@ -32,6 +32,18 @@ class CHROMEOS_EXPORT CommandBroker
explicit CommandBroker(Driver* driver);
~CommandBroker() override;
+ // Tells the driver that the current thread entered command handling loop.
+ // Returns true on success.
+ bool EnterLooper();
+
+ // Tells the driver that the current thread exited command handling loop.
+ // Returns true on success.
+ bool ExitLooper();
+
+ // Fetches incoming commands and handles them.
+ // Returns true on success.
+ bool PollCommands();
+
// Performs transaction with the remote object specified by the handle.
// Returns true on success. If not one-way transaction, this method blocks
// until the target object sends a reply.
@@ -51,6 +63,7 @@ class CHROMEOS_EXPORT CommandBroker
base::Closure GetReleaseReferenceClosure(int32_t handle);
// CommandStream::IncomingCommandHandler override:
+ bool OnTransaction(const TransactionData& data) override;
void OnReply(scoped_ptr<TransactionData> data) override;
void OnDeadReply() override;
void OnTransactionComplete() override;
« no previous file with comments | « no previous file | chromeos/binder/command_broker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698