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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 7 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
Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h
index 8b4b57b3158f3d5d2782256689cd5a2c34f3a3ae..66b5514fac89b82d235a54c1114c6241c3ffe49c 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h
@@ -37,6 +37,7 @@ class BrowserContext;
namespace device {
class BluetoothGattNotifySession;
+class BluetoothLocalGattCharacteristic;
} // namespace device
@@ -277,6 +278,14 @@ class BluetoothLowEnergyEventRouter
device::BluetoothRemoteGattDescriptor* descriptor,
const std::vector<uint8_t>& value) override;
+ // Adds a mapping for a local characteristic ID to its service ID
+ void AddLocalCharacteristic(const std::string& id,
+ const std::string& service_id);
+ // Returns a BluetoothGattCharacteristic by its ID |id|.
+ // Returns NULL, if the characteristic cannot be found.
+ device::BluetoothLocalGattCharacteristic* GetLocalCharacteristic(
+ const std::string& id) const;
+
device::BluetoothAdapter* adapter() { return adapter_.get(); }
private:

Powered by Google App Engine
This is Rietveld 408576698