Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5044)

Unified Diff: chromeos/dbus/nfc_record_client.h

Issue 99903003: nfc: Various fixes to the NFC D-Bus client in chromeos/dbus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/nfc_record_client.h
diff --git a/chromeos/dbus/nfc_record_client.h b/chromeos/dbus/nfc_record_client.h
index a7f1d91020b76fa92a966c1a1a7237abba628055..1aec4d15b7ea9cfdf9499034cb8ad8c514f6f568 100644
--- a/chromeos/dbus/nfc_record_client.h
+++ b/chromeos/dbus/nfc_record_client.h
@@ -92,12 +92,16 @@ class CHROMEOS_EXPORT NfcRecordClient : public DBusClient {
// with object path |object_path| has acquired a new value.
virtual void RecordPropertyChanged(const dbus::ObjectPath& object_path,
const std::string& property_name) {}
- };
- // NDEF records can be created via the Tag and Device interfaces by passing a
- // dictionary of strings containing the record properties and their values to
- // their respective API methods.
- typedef std::map<std::string, std::string> Attributes;
+ // Called when all properties for the record with object path |object_path|
+ // have been received. This method will be called after
+ // Observer::RecordPropertyChanged has been called for all properties that
+ // were received through the initial property fetch that is done when the
+ // object proxy is first created. Observers can use this method to be
+ // notified when all existing properties of a record are available for use.
+ virtual void RecordPropertiesReceived(
+ const dbus::ObjectPath& object_path) {}
+ };
virtual ~NfcRecordClient();

Powered by Google App Engine
This is Rietveld 408576698