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

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

Issue 1966893003: IDL changes for BLE GATT server support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
index 4fbd2da5b21fe9491e1d132e5167faeeb1fe548a..277a5fb575e75016019aa7f89dbd5c5cd478f9a6 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
@@ -39,6 +39,12 @@ struct Params;
namespace UnregisterService {
struct Params;
}
+namespace NotifyCharacteristicValueChanged {
+struct Params;
+}
+namespace RemoveService {
+struct Params;
+}
namespace SendRequestResponse {
struct Params;
}
@@ -512,6 +518,22 @@ class BluetoothLowEnergyCreateCharacteristicFunction
void DoWork() override;
};
+class BluetoothLowEnergyNotifyCharacteristicValueChangedFunction
+ : public BLEPeripheralExtensionFunction<
+ extensions::api::bluetooth_low_energy::
+ NotifyCharacteristicValueChanged::Params> {
+ public:
+ DECLARE_EXTENSION_FUNCTION(
+ "bluetoothLowEnergy.notifyCharacteristicValueChanged",
+ BLUETOOTHLOWENERGY_NOTIFYCHARACTERISTICVALUECHANGED);
+
+ protected:
+ ~BluetoothLowEnergyNotifyCharacteristicValueChangedFunction() override {}
+
+ // BluetoothLowEnergyPeripheralExtensionFunction override.
+ void DoWork() override;
+};
+
class BluetoothLowEnergyCreateDescriptorFunction
: public BLEPeripheralExtensionFunction<
extensions::api::bluetooth_low_energy::CreateDescriptor::Params> {
@@ -564,6 +586,20 @@ class BluetoothLowEnergyUnregisterServiceFunction
void ErrorCallback(BluetoothLowEnergyEventRouter::Status status);
};
+class BluetoothLowEnergyRemoveServiceFunction
+ : public BLEPeripheralExtensionFunction<
+ extensions::api::bluetooth_low_energy::RemoveService::Params> {
+ public:
+ DECLARE_EXTENSION_FUNCTION("bluetoothLowEnergy.removeService",
+ BLUETOOTHLOWENERGY_REMOVESERVICE);
+
+ protected:
+ ~BluetoothLowEnergyRemoveServiceFunction() override {}
+
+ // BluetoothLowEnergyPeripheralExtensionFunction override.
+ void DoWork() override;
+};
+
class BluetoothLowEnergySendRequestResponseFunction
: public BLEPeripheralExtensionFunction<
extensions::api::bluetooth_low_energy::SendRequestResponse::Params> {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698