summaryrefslogtreecommitdiffstats
path: root/dbus/test_service.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 03:02:37 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 03:02:37 +0000
commitbd81f3fdcb27097d9ddc293dea09efd6de628f02 (patch)
tree5bc66e90c15ca9247f150fc67afd06a14fe155dd /dbus/test_service.h
parentdda6d0ddca97a3f4ba53decce35f26ec7305e3ac (diff)
downloadchromium_src-bd81f3fdcb27097d9ddc293dea09efd6de628f02.zip
chromium_src-bd81f3fdcb27097d9ddc293dea09efd6de628f02.tar.gz
chromium_src-bd81f3fdcb27097d9ddc293dea09efd6de628f02.tar.bz2
Revert 111479 - chrome: dbus: support asynchronous method replies
BUG=chromium-os:23241 TEST=Unit tests and manual testing on device. Change-Id: I4d665897687030f4ab2379e4f6ddb9b3ebe02af4 Review URL: http://codereview.chromium.org/8637002 TBR=vlaviano@chromium.org Review URL: http://codereview.chromium.org/8682032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/test_service.h')
-rw-r--r--dbus/test_service.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/dbus/test_service.h b/dbus/test_service.h
index ea3e5ad..153613e 100644
--- a/dbus/test_service.h
+++ b/dbus/test_service.h
@@ -10,7 +10,6 @@
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
#include "base/synchronization/waitable_event.h"
-#include "dbus/exported_object.h"
namespace base {
class MessageLoopProxy;
@@ -19,6 +18,7 @@ class MessageLoopProxy;
namespace dbus {
class Bus;
+class ExportedObject;
class MethodCall;
class Response;
@@ -89,22 +89,14 @@ class TestService : public base::Thread {
//
// Echos the text message received from the method call.
- void Echo(MethodCall* method_call,
- dbus::ExportedObject::ResponseSender response_sender);
+ Response* Echo(MethodCall* method_call);
// Echos the text message received from the method call, but sleeps for
// TestTimeouts::tiny_timeout_ms() before returning the response.
- void SlowEcho(MethodCall* method_call,
- dbus::ExportedObject::ResponseSender response_sender);
-
- // Echos the text message received from the method call, but sends its
- // response asynchronously after this callback has returned.
- void AsyncEcho(MethodCall* method_call,
- dbus::ExportedObject::ResponseSender response_sender);
+ Response* SlowEcho(MethodCall* method_call);
// Returns NULL, instead of a valid Response.
- void BrokenMethod(MethodCall* method_call,
- dbus::ExportedObject::ResponseSender response_sender);
+ Response* BrokenMethod(MethodCall* method_call);
scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_;
base::WaitableEvent on_all_methods_exported_;