diff options
author | vlaviano@chromium.org <vlaviano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-30 04:57:42 +0000 |
---|---|---|
committer | vlaviano@chromium.org <vlaviano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-30 04:57:42 +0000 |
commit | 9aa74ccbcaf9f29f03ca4f0dbccd896ef4098118 (patch) | |
tree | 353aaadbdf70b223d8e0cbe71572bd9814c7e580 /dbus/bus.h | |
parent | cb8a5468be6eb5072a8e9173b554448c0d06e111 (diff) | |
download | chromium_src-9aa74ccbcaf9f29f03ca4f0dbccd896ef4098118.zip chromium_src-9aa74ccbcaf9f29f03ca4f0dbccd896ef4098118.tar.gz chromium_src-9aa74ccbcaf9f29f03ca4f0dbccd896ef4098118.tar.bz2 |
chrome: dbus: support asynchronous method replies
BUG=chromium-os:23241
TEST=Unit tests and manual testing on device.
Change-Id: Iab009ddbd12dea1e12299ae0ddccd4e430d9cf97
Review URL: http://codereview.chromium.org/8728020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/bus.h')
-rw-r--r-- | dbus/bus.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -100,11 +100,15 @@ class ObjectProxy; // // Exporting a method: // -// Response* Echo(dbus::MethodCall* method_call) { +// void Echo(dbus::MethodCall* method_call, +// dbus::ExportedObject::ResponseSender response_sender) { // // Do something with method_call. // Response* response = Response::FromMethodCall(method_call); // // Build response here. -// return response; +// // Can send an immediate response here to implement a synchronous service +// // or store the response_sender and send a response later to implement an +// // asynchronous service. +// response_sender.Run(response); // } // // void OnExported(const std::string& interface_name, |