Chromium Code Reviews| Index: dbus/object_proxy.h |
| diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h |
| index 9642262be56e909cf099211108e6bae54cc3f09c..84f259e6d232327e76fa128c2aed3abd379dc1a2 100644 |
| --- a/dbus/object_proxy.h |
| +++ b/dbus/object_proxy.h |
| @@ -236,6 +236,22 @@ class ObjectProxy : public base::RefCountedThreadSafe<ObjectProxy> { |
| ResponseCallback response_callback, |
| ErrorResponse* error_response); |
| + // Add the match rule to the bus and associate the callback with the signal. |
|
satorux1
2012/10/22 04:50:42
Adds
Haruki Sato
2012/10/24 08:28:05
Done.
|
| + bool AddMatchRuleAndCallback(std::string match_rule, |
|
satorux1
2012/10/22 04:50:42
Please use const std::string& for function paramet
Haruki Sato
2012/10/24 08:28:05
Done.
Thanks.
|
| + std::string absolute_signal_name, |
|
satorux1
2012/10/22 04:50:42
indentation is off
Haruki Sato
2012/10/24 08:28:05
Done.
Thanks.
|
| + SignalCallback signal_callback); |
| + |
| + |
| + // Add the match rule to the bus so that HandleMessage can see the signal. |
| + bool AddMatchRuleWithoutCallback(std::string match_rule, |
| + std::string absolute_signal_name); |
|
satorux1
2012/10/22 05:23:32
indentation is off.
Haruki Sato
2012/10/24 08:28:05
Done.
|
| + |
| + // Handle NameOwnerChanged signal from D-Bus's special message bus |
| + DBusHandlerResult HandleNameOwnerChanged(dbus::Signal* signal); |
| + |
| + // Call D-Bus's GetNameOwner method and update the owner of |service_name_|. |
| + bool UpdateNameOwner(); |
| + |
| scoped_refptr<Bus> bus_; |
| std::string service_name_; |
| ObjectPath object_path_; |
| @@ -252,6 +268,8 @@ class ObjectProxy : public base::RefCountedThreadSafe<ObjectProxy> { |
| const bool ignore_service_unknown_errors_; |
| + std::string service_name_owner_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ObjectProxy); |
| }; |