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

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

Issue 2745983003: Bluetooth: macOS: Adding logs (Closed)
Patch Set: Last fix about GetIdentifier() 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_DESCRIPTOR_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_MAC_H_
7 7
8 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" 8 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h"
9 9
10 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 const ErrorCallback& error_callback) override; 41 const ErrorCallback& error_callback) override;
42 void WriteRemoteDescriptor(const std::vector<uint8_t>& new_value, 42 void WriteRemoteDescriptor(const std::vector<uint8_t>& new_value,
43 const base::Closure& callback, 43 const base::Closure& callback,
44 const ErrorCallback& error_callback) override; 44 const ErrorCallback& error_callback) override;
45 45
46 private: 46 private:
47 friend class BluetoothRemoteGattCharacteristicMac; 47 friend class BluetoothRemoteGattCharacteristicMac;
48 48
49 // Returns CoreBluetooth descriptor. 49 // Returns CoreBluetooth descriptor.
50 CBDescriptor* GetCBDescriptor() const; 50 CBDescriptor* GetCBDescriptor() const;
51 // Returns a description for the descriptor, that should be used for logs.
52 std::string ToString() const;
51 // gatt_characteristic_ owns instances of this class. 53 // gatt_characteristic_ owns instances of this class.
52 BluetoothRemoteGattCharacteristicMac* gatt_characteristic_; 54 BluetoothRemoteGattCharacteristicMac* gatt_characteristic_;
53 // Descriptor from CoreBluetooth. 55 // Descriptor from CoreBluetooth.
54 base::scoped_nsobject<CBDescriptor> cb_descriptor_; 56 base::scoped_nsobject<CBDescriptor> cb_descriptor_;
55 // Descriptor identifier. 57 // Descriptor identifier.
56 std::string identifier_; 58 std::string identifier_;
57 // Descriptor UUID. 59 // Descriptor UUID.
58 BluetoothUUID uuid_; 60 BluetoothUUID uuid_;
59 // Descriptor value. 61 // Descriptor value.
60 std::vector<uint8_t> value_; 62 std::vector<uint8_t> value_;
61 }; 63 };
62 64
63 } // namespace device 65 } // namespace device
64 66
65 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ 67 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698