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

Unified Diff: device/bluetooth/bluez/bluetooth_service_record_bluez.h

Issue 2302963002: device/bluetooth: Add a helper function to BluetoothServiceRecordBlueZ (Closed)
Patch Set: Rebase on ToT. Created 4 years, 3 months 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
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_service_record_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluez/bluetooth_service_record_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_service_record_bluez.h b/device/bluetooth/bluez/bluetooth_service_record_bluez.h
index b19618f816900a8ae73ee9f819f92f2eeba889b5..5fb62052253f9792baedaf4de7c38d822925568b 100644
--- a/device/bluetooth/bluez/bluetooth_service_record_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_service_record_bluez.h
@@ -42,11 +42,15 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothServiceRecordBlueZ {
const BluetoothServiceAttributeValueBlueZ& GetAttributeValue(
uint16_t attribute_id) const;
- // Add an an entry to this service record. If a record with the given ID
- // already exists, it is replaced.
+ // Adds an entry to this service record. If a record with the given ID already
+ // exists, it is replaced.
void AddRecordEntry(uint16_t id,
const BluetoothServiceAttributeValueBlueZ& value);
+ // Returns true if the given attribute ID is found in the attribute map, false
+ // otherwise.
+ bool IsAttributePresented(uint16_t id);
+
private:
std::map<uint16_t, BluetoothServiceAttributeValueBlueZ> attributes_;
};
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_service_record_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698