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

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

Issue 1973343005: Remove service, add device, in BluetoothLocalGattService::Delegate (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 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_BLUEZ_BLUETOOTH_LOCAL_GATT_CHARACTERISTIC_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_CHARACTERISTIC_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_CHARACTERISTIC_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_CHARACTERISTIC_BLUEZ_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 Properties properties, 32 Properties properties,
33 BluetoothLocalGattServiceBlueZ* service); 33 BluetoothLocalGattServiceBlueZ* service);
34 ~BluetoothLocalGattCharacteristicBlueZ() override; 34 ~BluetoothLocalGattCharacteristicBlueZ() override;
35 35
36 // device::BluetoothGattCharacteristic overrides: 36 // device::BluetoothGattCharacteristic overrides:
37 device::BluetoothUUID GetUUID() const override; 37 device::BluetoothUUID GetUUID() const override;
38 Properties GetProperties() const override; 38 Properties GetProperties() const override;
39 Permissions GetPermissions() const override; 39 Permissions GetPermissions() const override;
40 40
41 // device::BluetoothLocalGattCharacteristic overrides: 41 // device::BluetoothLocalGattCharacteristic overrides:
42 NotificationStatus NotifyValueChanged(const std::vector<uint8_t>& new_value, 42 NotificationStatus NotifyValueChanged(const device::BluetoothDevice* device,
43 const std::vector<uint8_t>& new_value,
43 bool indicate) override; 44 bool indicate) override;
44 45 device::BluetoothLocalGattService* GetService() const override;
45 BluetoothLocalGattServiceBlueZ* GetService();
46 46
47 const std::vector<std::unique_ptr<BluetoothLocalGattDescriptorBlueZ>>& 47 const std::vector<std::unique_ptr<BluetoothLocalGattDescriptorBlueZ>>&
48 GetDescriptors() const; 48 GetDescriptors() const;
49 49
50 private: 50 private:
51 friend class BluetoothLocalGattDescriptorBlueZ; 51 friend class BluetoothLocalGattDescriptorBlueZ;
52 // Needs access to weak_ptr_factory_. 52 // Needs access to weak_ptr_factory_.
53 friend device::BluetoothLocalGattCharacteristic; 53 friend device::BluetoothLocalGattCharacteristic;
54 54
55 // Adds a descriptor to this characteristic. 55 // Adds a descriptor to this characteristic.
(...skipping 15 matching lines...) Expand all
71 // Note: This should remain the last member so it'll be destroyed and 71 // Note: This should remain the last member so it'll be destroyed and
72 // invalidate its weak pointers before any other members are destroyed. 72 // invalidate its weak pointers before any other members are destroyed.
73 base::WeakPtrFactory<BluetoothLocalGattCharacteristicBlueZ> weak_ptr_factory_; 73 base::WeakPtrFactory<BluetoothLocalGattCharacteristicBlueZ> weak_ptr_factory_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattCharacteristicBlueZ); 75 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattCharacteristicBlueZ);
76 }; 76 };
77 77
78 } // namespace bluez 78 } // namespace bluez
79 79
80 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_CHARACTERISTIC_BLUEZ_H_ 80 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_CHARACTERISTIC_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698