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

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

Issue 2248913002: bluetooth: Implement RSSI and Tx Power on macOS and Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-refactor-adv-data
Patch Set: Address jyasskin's comments Created 4 years, 3 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 uint16_t GetVendorID() const override; 45 uint16_t GetVendorID() const override;
46 uint16_t GetProductID() const override; 46 uint16_t GetProductID() const override;
47 uint16_t GetDeviceID() const override; 47 uint16_t GetDeviceID() const override;
48 uint16_t GetAppearance() const override; 48 uint16_t GetAppearance() const override;
49 base::Optional<std::string> GetName() const override; 49 base::Optional<std::string> GetName() const override;
50 bool IsPaired() const override; 50 bool IsPaired() const override;
51 bool IsConnected() const override; 51 bool IsConnected() const override;
52 bool IsGattConnected() const override; 52 bool IsGattConnected() const override;
53 bool IsConnectable() const override; 53 bool IsConnectable() const override;
54 bool IsConnecting() const override; 54 bool IsConnecting() const override;
55 base::Optional<int8_t> GetInquiryRSSI() const override;
56 base::Optional<int8_t> GetInquiryTxPower() const override;
57 bool ExpectingPinCode() const override; 55 bool ExpectingPinCode() const override;
58 bool ExpectingPasskey() const override; 56 bool ExpectingPasskey() const override;
59 bool ExpectingConfirmation() const override; 57 bool ExpectingConfirmation() const override;
60 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 58 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
61 void Connect(PairingDelegate* pairing_delegate, 59 void Connect(PairingDelegate* pairing_delegate,
62 const base::Closure& callback, 60 const base::Closure& callback,
63 const ConnectErrorCallback& error_callback) override; 61 const ConnectErrorCallback& error_callback) override;
64 void SetPinCode(const std::string& pincode) override; 62 void SetPinCode(const std::string& pincode) override;
65 void SetPasskey(uint32_t passkey) override; 63 void SetPasskey(uint32_t passkey) override;
66 void ConfirmPairing() override; 64 void ConfirmPairing() override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // A local address for the device created by hashing the peripheral 136 // A local address for the device created by hashing the peripheral
139 // identifier. 137 // identifier.
140 std::string hash_address_; 138 std::string hash_address_;
141 139
142 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); 140 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac);
143 }; 141 };
144 142
145 } // namespace device 143 } // namespace device
146 144
147 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ 145 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698