diff options
author | armansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-20 23:24:19 +0000 |
---|---|---|
committer | armansito@chromium.org <armansito@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-20 23:24:19 +0000 |
commit | 13aa72068571a09f84d6bd2524cf6d9ca190f214 (patch) | |
tree | 77b4587e072bdfdde5ac0e95db8292acbf0211f9 /chromeos/dbus/nfc_record_client.cc | |
parent | 57afa12e2f3d503b2cea20ecd50a47930156305a (diff) | |
download | chromium_src-13aa72068571a09f84d6bd2524cf6d9ca190f214.zip chromium_src-13aa72068571a09f84d6bd2524cf6d9ca190f214.tar.gz chromium_src-13aa72068571a09f84d6bd2524cf6d9ca190f214.tar.bz2 |
nfc: Implement device::NfcPeerChromeOS.
Implemented device::NfcPeer for Chrome OS. With this, Chrome can now
interact with remote NFC adapters.
BUG=316471
TEST=device_unittests
Review URL: https://codereview.chromium.org/112183002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/nfc_record_client.cc')
-rw-r--r-- | chromeos/dbus/nfc_record_client.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chromeos/dbus/nfc_record_client.cc b/chromeos/dbus/nfc_record_client.cc index a24b947..7564c76 100644 --- a/chromeos/dbus/nfc_record_client.cc +++ b/chromeos/dbus/nfc_record_client.cc @@ -71,6 +71,15 @@ class NfcRecordClientImpl : public NfcRecordClient, observers_.RemoveObserver(observer); } + virtual std::vector<dbus::ObjectPath> GetRecordsForDevice( + const dbus::ObjectPath& device_path) OVERRIDE { + DBusObjectMap* object_map = + devices_and_tags_to_object_maps_.GetObjectMap(device_path); + if (!object_map) + return std::vector<dbus::ObjectPath>(); + return object_map->GetObjectPaths(); + } + // NfcRecordClient override. virtual Properties* GetProperties( const dbus::ObjectPath& object_path) OVERRIDE { |