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

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

Issue 2009753002: bluetooth: Make public BluetoothDevice::GetName method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out name/alias Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CLASSIC_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
7 7
8 #import <IOBluetooth/IOBluetooth.h> 8 #import <IOBluetooth/IOBluetooth.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 18 matching lines...) Expand all
29 ~BluetoothClassicDeviceMac() override; 29 ~BluetoothClassicDeviceMac() override;
30 30
31 // BluetoothDevice override 31 // BluetoothDevice override
32 uint32_t GetBluetoothClass() const override; 32 uint32_t GetBluetoothClass() const override;
33 std::string GetAddress() const override; 33 std::string GetAddress() const override;
34 VendorIDSource GetVendorIDSource() const override; 34 VendorIDSource GetVendorIDSource() const override;
35 uint16_t GetVendorID() const override; 35 uint16_t GetVendorID() const override;
36 uint16_t GetProductID() const override; 36 uint16_t GetProductID() const override;
37 uint16_t GetDeviceID() const override; 37 uint16_t GetDeviceID() const override;
38 uint16_t GetAppearance() const override; 38 uint16_t GetAppearance() const override;
39 base::Optional<std::string> GetName() const override;
39 bool IsPaired() const override; 40 bool IsPaired() const override;
40 bool IsConnected() const override; 41 bool IsConnected() const override;
41 bool IsGattConnected() const override; 42 bool IsGattConnected() const override;
42 bool IsConnectable() const override; 43 bool IsConnectable() const override;
43 bool IsConnecting() const override; 44 bool IsConnecting() const override;
44 UUIDList GetUUIDs() const override; 45 UUIDList GetUUIDs() const override;
45 int16_t GetInquiryRSSI() const override; 46 int16_t GetInquiryRSSI() const override;
46 int16_t GetInquiryTxPower() const override; 47 int16_t GetInquiryTxPower() const override;
47 bool ExpectingPinCode() const override; 48 bool ExpectingPinCode() const override;
48 bool ExpectingPasskey() const override; 49 bool ExpectingPasskey() const override;
(...skipping 24 matching lines...) Expand all
73 const ConnectErrorCallback& error_callback) override; 74 const ConnectErrorCallback& error_callback) override;
74 75
75 base::Time GetLastUpdateTime() const; 76 base::Time GetLastUpdateTime() const;
76 77
77 // Returns the Bluetooth address for the |device|. The returned address has a 78 // Returns the Bluetooth address for the |device|. The returned address has a
78 // normalized format (see below). 79 // normalized format (see below).
79 static std::string GetDeviceAddress(IOBluetoothDevice* device); 80 static std::string GetDeviceAddress(IOBluetoothDevice* device);
80 81
81 protected: 82 protected:
82 // BluetoothDevice override 83 // BluetoothDevice override
83 std::string GetDeviceName() const override;
84 void CreateGattConnectionImpl() override; 84 void CreateGattConnectionImpl() override;
85 void DisconnectGatt() override; 85 void DisconnectGatt() override;
86 86
87 private: 87 private:
88 friend class BluetoothAdapterMac; 88 friend class BluetoothAdapterMac;
89 89
90 // Implementation to read the host's transmit power level of type 90 // Implementation to read the host's transmit power level of type
91 // |power_level_type|. 91 // |power_level_type|.
92 int GetHostTransmitPower( 92 int GetHostTransmitPower(
93 BluetoothHCITransmitPowerLevelType power_level_type) const; 93 BluetoothHCITransmitPowerLevelType power_level_type) const;
94 94
95 base::scoped_nsobject<IOBluetoothDevice> device_; 95 base::scoped_nsobject<IOBluetoothDevice> device_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac); 97 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac);
98 }; 98 };
99 99
100 } // namespace device 100 } // namespace device
101 101
102 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ 102 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win_unittest.cc ('k') | device/bluetooth/bluetooth_classic_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698