Index: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h |
diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h |
index 4132f8e62cadad385d7dfe1763ce5f9efcde11fa..c690aeab8ff6daff1bbb23298e56bc7b1202bf36 100644 |
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h |
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h |
@@ -48,6 +48,10 @@ |
std::vector<BluetoothRemoteGattDescriptor*> GetDescriptors() const override; |
BluetoothRemoteGattDescriptor* GetDescriptor( |
const std::string& identifier) const override; |
+ void StartNotifySession(const NotifySessionCallback& callback, |
+ const ErrorCallback& error_callback) override; |
+ void StopNotifySession(BluetoothGattNotifySession* session, |
+ const base::Closure& callback) override; |
void ReadRemoteCharacteristic(const ValueCallback& callback, |
const ErrorCallback& error_callback) override; |
void WriteRemoteCharacteristic(const std::vector<uint8_t>& value, |
@@ -122,8 +126,9 @@ |
std::pair<ValueCallback, ErrorCallback> read_characteristic_value_callbacks_; |
// WriteRemoteCharacteristic request callbacks. |
std::pair<base::Closure, ErrorCallback> write_characteristic_value_callbacks_; |
- // Stores SubscribeToNotifications request callbacks. |
- typedef std::pair<base::Closure, const ErrorCallback> PendingStartNotifyCall; |
+ // Stores StartNotifySession request callbacks. |
+ typedef std::pair<NotifySessionCallback, ErrorCallback> |
+ PendingStartNotifyCall; |
std::vector<PendingStartNotifyCall> start_notify_session_callbacks_; |
// Flag indicates if GATT event registration is in progress. |
bool start_notifications_in_progress_; |