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

Side by Side Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h

Issue 2634873002: Bluetooth: macOS: Implement BluetoothRemoteGattCharacteristicMac::UnsubscribeFromNotifications (Closed)
Patch Set: Adding last_notify_value for macOS Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_
7 7
8 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" 8 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h"
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Service UUID. 115 // Service UUID.
116 BluetoothUUID uuid_; 116 BluetoothUUID uuid_;
117 // Characteristic value. 117 // Characteristic value.
118 std::vector<uint8_t> value_; 118 std::vector<uint8_t> value_;
119 // True if a gatt read or write request is in progress. 119 // True if a gatt read or write request is in progress.
120 bool characteristic_value_read_or_write_in_progress_; 120 bool characteristic_value_read_or_write_in_progress_;
121 // ReadRemoteCharacteristic request callbacks. 121 // ReadRemoteCharacteristic request callbacks.
122 std::pair<ValueCallback, ErrorCallback> read_characteristic_value_callbacks_; 122 std::pair<ValueCallback, ErrorCallback> read_characteristic_value_callbacks_;
123 // WriteRemoteCharacteristic request callbacks. 123 // WriteRemoteCharacteristic request callbacks.
124 std::pair<base::Closure, ErrorCallback> write_characteristic_value_callbacks_; 124 std::pair<base::Closure, ErrorCallback> write_characteristic_value_callbacks_;
125 // Stores SubscribeToNotifications request callbacks. 125 // Stores callbacks for SubscribeToNotifications and
126 // UnsubscribeFromNotifications requests.
126 typedef std::pair<base::Closure, ErrorCallback> PendingNotifyCallbacks; 127 typedef std::pair<base::Closure, ErrorCallback> PendingNotifyCallbacks;
127 // Stores SubscribeToNotifications request callbacks. 128 // Stores SubscribeToNotifications request callbacks.
128 PendingNotifyCallbacks subscribe_to_notification_callbacks_; 129 PendingNotifyCallbacks subscribe_to_notification_callbacks_;
130 // Stores UnsubscribeFromNotifications request callbacks.
131 PendingNotifyCallbacks unsubscribe_from_notification_callbacks_;
129 // Map of descriptors, keyed by descriptor identifier. 132 // Map of descriptors, keyed by descriptor identifier.
130 std::unordered_map<std::string, 133 std::unordered_map<std::string,
131 std::unique_ptr<BluetoothRemoteGattDescriptorMac>> 134 std::unique_ptr<BluetoothRemoteGattDescriptorMac>>
132 gatt_descriptor_macs_; 135 gatt_descriptor_macs_;
133 }; 136 };
134 137
135 } // namespace device 138 } // namespace device
136 139
137 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ 140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_characteristic.cc ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698