Chromium Code Reviews| Index: chromeos/binder/command_broker.h |
| diff --git a/chromeos/binder/command_broker.h b/chromeos/binder/command_broker.h |
| index bfca14270356141300d0dacff089b8cc7cc23a3a..de7aa9910640af4f68a4326fce8246a7335bee38 100644 |
| --- a/chromeos/binder/command_broker.h |
| +++ b/chromeos/binder/command_broker.h |
| @@ -32,6 +32,15 @@ class CHROMEOS_EXPORT CommandBroker |
| explicit CommandBroker(Driver* driver); |
| ~CommandBroker() override; |
| + // Tells the driver that the current thread entered command handling loop. |
|
satorux1
2016/01/13 04:33:20
Please document the return value here and elsewher
hashimoto
2016/01/13 05:46:46
Done.
|
| + bool EnterLooper(); |
| + |
| + // Tells the driver that the current thread exited command handling loop. |
| + bool ExitLooper(); |
| + |
| + // Fetches incoming commands and handles them. |
| + 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 +60,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; |