diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-24 03:02:37 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-24 03:02:37 +0000 |
commit | bd81f3fdcb27097d9ddc293dea09efd6de628f02 (patch) | |
tree | 5bc66e90c15ca9247f150fc67afd06a14fe155dd /dbus/exported_object.h | |
parent | dda6d0ddca97a3f4ba53decce35f26ec7305e3ac (diff) | |
download | chromium_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/exported_object.h')
-rw-r--r-- | dbus/exported_object.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/dbus/exported_object.h b/dbus/exported_object.h index 7ac2f88..bc67bcd 100644 --- a/dbus/exported_object.h +++ b/dbus/exported_object.h @@ -38,15 +38,9 @@ class ExportedObject : public base::RefCountedThreadSafe<ExportedObject> { const std::string& service_name, const std::string& object_path); - // Called to send a response from an exported method. Response* is the - // response message. Callers should pass a NULL Response* in the event - // of an error that prevents the sending of a response. - typedef base::Callback<void (Response*)> ResponseSender; - // Called when an exported method is called. MethodCall* is the request - // message. ResponseSender is the callback that should be used to send a - // response. - typedef base::Callback<void (MethodCall*, ResponseSender)> MethodCallCallback; + // message. + typedef base::Callback<Response* (MethodCall*)> MethodCallCallback; // Called when method exporting is done. // Parameters: @@ -130,14 +124,7 @@ class ExportedObject : public base::RefCountedThreadSafe<ExportedObject> { MethodCall* method_call, base::TimeTicks start_time); - // Callback invoked by service provider to send a response to a method call. - // Can be called immediately from a MethodCallCallback to implement a - // synchronous service or called later to implement an asynchronous service. - void SendResponse(base::TimeTicks start_time, - MethodCall* method_call, - Response* response); - - // Called on completion of the method run from SendResponse(). + // Called on completion of the method run from RunMethod(). // Takes ownership of |method_call| and |response|. void OnMethodCompleted(MethodCall* method_call, Response* response, |