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

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

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Improve comments Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_LOW_ENERGY_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
7 7
8 #if defined(OS_IOS) 8 #if defined(OS_IOS)
9 #import <CoreBluetooth/CoreBluetooth.h> 9 #import <CoreBluetooth/CoreBluetooth.h>
10 #else // !defined(OS_IOS) 10 #else // !defined(OS_IOS)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 uint16_t GetVendorID() const override; 49 uint16_t GetVendorID() const override;
50 uint16_t GetProductID() const override; 50 uint16_t GetProductID() const override;
51 uint16_t GetDeviceID() const override; 51 uint16_t GetDeviceID() const override;
52 uint16_t GetAppearance() const override; 52 uint16_t GetAppearance() const override;
53 base::Optional<std::string> GetName() const override; 53 base::Optional<std::string> GetName() const override;
54 bool IsPaired() const override; 54 bool IsPaired() const override;
55 bool IsConnected() const override; 55 bool IsConnected() const override;
56 bool IsGattConnected() const override; 56 bool IsGattConnected() const override;
57 bool IsConnectable() const override; 57 bool IsConnectable() const override;
58 bool IsConnecting() const override; 58 bool IsConnecting() const override;
59 BluetoothDevice::UUIDList GetUUIDs() const override;
60 int16_t GetInquiryRSSI() const override; 59 int16_t GetInquiryRSSI() const override;
61 int16_t GetInquiryTxPower() const override; 60 int16_t GetInquiryTxPower() const override;
62 bool ExpectingPinCode() const override; 61 bool ExpectingPinCode() const override;
63 bool ExpectingPasskey() const override; 62 bool ExpectingPasskey() const override;
64 bool ExpectingConfirmation() const override; 63 bool ExpectingConfirmation() const override;
65 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 64 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
66 void Connect(PairingDelegate* pairing_delegate, 65 void Connect(PairingDelegate* pairing_delegate,
67 const base::Closure& callback, 66 const base::Closure& callback,
68 const ConnectErrorCallback& error_callback) override; 67 const ConnectErrorCallback& error_callback) override;
69 void SetPinCode(const std::string& pincode) override; 68 void SetPinCode(const std::string& pincode) override;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Whether the device is connectable. 142 // Whether the device is connectable.
144 bool connectable_; 143 bool connectable_;
145 144
146 // The peripheral's identifier, as returned by [CBPeripheral identifier]. 145 // The peripheral's identifier, as returned by [CBPeripheral identifier].
147 std::string identifier_; 146 std::string identifier_;
148 147
149 // A local address for the device created by hashing the peripheral 148 // A local address for the device created by hashing the peripheral
150 // identifier. 149 // identifier.
151 std::string hash_address_; 150 std::string hash_address_;
152 151
153 // The services (identified by UUIDs) that this device provides.
154 std::set<BluetoothUUID> advertised_uuids_;
155
156 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); 152 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac);
157 }; 153 };
158 154
159 } // namespace device 155 } // namespace device
160 156
161 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ 157 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698