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

Side by Side Diff: device/bluetooth/bluez/bluetooth_device_bluez.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_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // BluetoothDevice override 49 // BluetoothDevice override
50 uint32_t GetBluetoothClass() const override; 50 uint32_t GetBluetoothClass() const override;
51 device::BluetoothTransport GetType() const override; 51 device::BluetoothTransport GetType() const override;
52 std::string GetAddress() const override; 52 std::string GetAddress() const override;
53 VendorIDSource GetVendorIDSource() const override; 53 VendorIDSource GetVendorIDSource() const override;
54 uint16_t GetVendorID() const override; 54 uint16_t GetVendorID() const override;
55 uint16_t GetProductID() const override; 55 uint16_t GetProductID() const override;
56 uint16_t GetDeviceID() const override; 56 uint16_t GetDeviceID() const override;
57 uint16_t GetAppearance() const override; 57 uint16_t GetAppearance() const override;
58 base::Optional<std::string> GetName() const override;
58 bool IsPaired() const override; 59 bool IsPaired() const override;
59 bool IsConnected() const override; 60 bool IsConnected() const override;
60 bool IsGattConnected() const override; 61 bool IsGattConnected() const override;
61 bool IsConnectable() const override; 62 bool IsConnectable() const override;
62 bool IsConnecting() const override; 63 bool IsConnecting() const override;
63 UUIDList GetUUIDs() const override; 64 UUIDList GetUUIDs() const override;
64 int16_t GetInquiryRSSI() const override; 65 int16_t GetInquiryRSSI() const override;
65 int16_t GetInquiryTxPower() const override; 66 int16_t GetInquiryTxPower() const override;
66 bool ExpectingPinCode() const override; 67 bool ExpectingPinCode() const override;
67 bool ExpectingPasskey() const override; 68 bool ExpectingPasskey() const override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 BluetoothPairingBlueZ* GetPairing() const; 117 BluetoothPairingBlueZ* GetPairing() const;
117 118
118 // Returns the object path of the device. 119 // Returns the object path of the device.
119 const dbus::ObjectPath& object_path() const { return object_path_; } 120 const dbus::ObjectPath& object_path() const { return object_path_; }
120 121
121 // Returns the adapter which owns this device instance. 122 // Returns the adapter which owns this device instance.
122 BluetoothAdapterBlueZ* adapter() const; 123 BluetoothAdapterBlueZ* adapter() const;
123 124
124 protected: 125 protected:
125 // BluetoothDevice override 126 // BluetoothDevice override
126 std::string GetDeviceName() const override;
127 void CreateGattConnectionImpl() override; 127 void CreateGattConnectionImpl() override;
128 void DisconnectGatt() override; 128 void DisconnectGatt() override;
129 129
130 private: 130 private:
131 friend class BluetoothAdapterBlueZ; 131 friend class BluetoothAdapterBlueZ;
132 132
133 BluetoothDeviceBlueZ( 133 BluetoothDeviceBlueZ(
134 BluetoothAdapterBlueZ* adapter, 134 BluetoothAdapterBlueZ* adapter,
135 const dbus::ObjectPath& object_path, 135 const dbus::ObjectPath& object_path,
136 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 136 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Note: This should remain the last member so it'll be destroyed and 245 // Note: This should remain the last member so it'll be destroyed and
246 // invalidate its weak pointers before any other members are destroyed. 246 // invalidate its weak pointers before any other members are destroyed.
247 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; 247 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_;
248 248
249 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); 249 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ);
250 }; 250 };
251 251
252 } // namespace bluez 252 } // namespace bluez
253 253
254 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ 254 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win.h ('k') | device/bluetooth/bluez/bluetooth_device_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698