| Index: chromeos/dbus/nfc_property_set.h
|
| diff --git a/chromeos/dbus/nfc_property_set.h b/chromeos/dbus/nfc_property_set.h
|
| index 6560d4d6ab478730719189ceba86a3b6fc407f55..6b81ae15903bb47d84e6aed4a63b58b1e381102f 100644
|
| --- a/chromeos/dbus/nfc_property_set.h
|
| +++ b/chromeos/dbus/nfc_property_set.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/callback.h"
|
| #include "dbus/message.h"
|
| #include "dbus/object_proxy.h"
|
| #include "dbus/property.h"
|
| @@ -23,16 +24,25 @@ class NfcPropertySet : public dbus::PropertySet {
|
| const std::string& interface,
|
| const PropertyChangedCallback& callback);
|
|
|
| + // Caches |callback| so that it will be invoked after a call to GetAll()
|
| + // has successfully received all existing properties from the remote object.
|
| + void SetAllPropertiesReceivedCallback(const base::Closure& callback);
|
| +
|
| // dbus::PropertySet overrides
|
| virtual void ConnectSignals() OVERRIDE;
|
| virtual void Get(dbus::PropertyBase* property,
|
| GetCallback callback) OVERRIDE;
|
| virtual void GetAll() OVERRIDE;
|
| + virtual void OnGetAll(dbus::Response* response) OVERRIDE;
|
| virtual void Set(dbus::PropertyBase* property,
|
| SetCallback callback) OVERRIDE;
|
| virtual void ChangedReceived(dbus::Signal* signal) OVERRIDE;
|
|
|
| private:
|
| + // Optional callback used to notify clients when all properties were received
|
| + // after a call to GetAll.
|
| + base::Closure on_get_all_callback_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NfcPropertySet);
|
| };
|
|
|
|
|