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

Side by Side Diff: device/bluetooth/bluez/bluetooth_remote_gatt_characteristic_bluez.h

Issue 2736433003: Clean up web bluetooth related code (Closed)
Patch Set: clean up web bluetooth related code Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BLUEZ_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_BLUEZ_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <map> 10 #include <map>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const base::Closure& callback, 69 const base::Closure& callback,
70 const ErrorCallback& error_callback) override; 70 const ErrorCallback& error_callback) override;
71 void UnsubscribeFromNotifications( 71 void UnsubscribeFromNotifications(
72 device::BluetoothRemoteGattDescriptor* ccc_descriptor, 72 device::BluetoothRemoteGattDescriptor* ccc_descriptor,
73 const base::Closure& callback, 73 const base::Closure& callback,
74 const ErrorCallback& error_callback) override; 74 const ErrorCallback& error_callback) override;
75 75
76 private: 76 private:
77 friend class BluetoothRemoteGattServiceBlueZ; 77 friend class BluetoothRemoteGattServiceBlueZ;
78 78
79 using PendingStartNotifyCall =
80 std::pair<NotifySessionCallback, ErrorCallback>;
81
82 BluetoothRemoteGattCharacteristicBlueZ( 79 BluetoothRemoteGattCharacteristicBlueZ(
83 BluetoothRemoteGattServiceBlueZ* service, 80 BluetoothRemoteGattServiceBlueZ* service,
84 const dbus::ObjectPath& object_path); 81 const dbus::ObjectPath& object_path);
85 ~BluetoothRemoteGattCharacteristicBlueZ() override; 82 ~BluetoothRemoteGattCharacteristicBlueZ() override;
86 83
87 // bluez::BluetoothGattDescriptorClient::Observer overrides. 84 // bluez::BluetoothGattDescriptorClient::Observer overrides.
88 void GattDescriptorAdded(const dbus::ObjectPath& object_path) override; 85 void GattDescriptorAdded(const dbus::ObjectPath& object_path) override;
89 void GattDescriptorRemoved(const dbus::ObjectPath& object_path) override; 86 void GattDescriptorRemoved(const dbus::ObjectPath& object_path) override;
90 void GattDescriptorPropertyChanged(const dbus::ObjectPath& object_path, 87 void GattDescriptorPropertyChanged(const dbus::ObjectPath& object_path,
91 const std::string& property_name) override; 88 const std::string& property_name) override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // invalidate its weak pointers before any other members are destroyed. 134 // invalidate its weak pointers before any other members are destroyed.
138 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicBlueZ> 135 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicBlueZ>
139 weak_ptr_factory_; 136 weak_ptr_factory_;
140 137
141 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicBlueZ); 138 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicBlueZ);
142 }; 139 };
143 140
144 } // namespace bluez 141 } // namespace bluez
145 142
146 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_BLUEZ_H_ 143 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_BLUEZ_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698