Chromium Code Reviews| Index: chromeos/dbus/blocking_method_caller.h |
| diff --git a/chromeos/dbus/blocking_method_caller.h b/chromeos/dbus/blocking_method_caller.h |
| index c70c6748940238cceab1d200afe9c31d59adc1e8..45486be28f8e8f001e5127971b114082134482a4 100644 |
| --- a/chromeos/dbus/blocking_method_caller.h |
| +++ b/chromeos/dbus/blocking_method_caller.h |
| @@ -14,6 +14,7 @@ namespace dbus { |
| class Bus; |
| class ObjectProxy; |
| +class ScopedDBusError; |
| } // namespace dbus |
| @@ -31,6 +32,12 @@ class CHROMEOS_EXPORT BlockingMethodCaller { |
| std::unique_ptr<dbus::Response> CallMethodAndBlock( |
| dbus::MethodCall* method_call); |
| + // Calls the method and blocks until it returns. Populates the |error| and |
| + // returns null in case of an error. |
| + std::unique_ptr<dbus::Response> CallMethodAndBlockWithError( |
| + dbus::MethodCall* method_call, |
| + dbus::ScopedDBusError* error); |
|
Daniel Erat
2017/04/20 21:06:38
error_out
igorcov
2017/04/21 11:36:21
Done.
|
| + |
| private: |
| dbus::Bus* bus_; |
| dbus::ObjectProxy* proxy_; |