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

Side by Side Diff: device/bluetooth/bluez/bluetooth_device_bluez.h

Issue 2369423003: bluetooth: Expose service data from BlueZ (Closed)
Patch Set: Change scope to not cover just dbus property Created 4 years, 2 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>
11 #include <string> 11 #include <string>
12 #include <unordered_set>
13 #include <vector>
12 14
13 #include "base/macros.h" 15 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
16 #include "base/sequenced_task_runner.h" 18 #include "base/sequenced_task_runner.h"
17 #include "dbus/object_path.h" 19 #include "dbus/object_path.h"
18 #include "device/bluetooth/bluetooth_common.h" 20 #include "device/bluetooth/bluetooth_common.h"
19 #include "device/bluetooth/bluetooth_device.h" 21 #include "device/bluetooth/bluetooth_device.h"
20 #include "device/bluetooth/bluetooth_export.h" 22 #include "device/bluetooth/bluetooth_export.h"
21 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" 23 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 uint16_t GetProductID() const override; 57 uint16_t GetProductID() const override;
56 uint16_t GetDeviceID() const override; 58 uint16_t GetDeviceID() const override;
57 uint16_t GetAppearance() const override; 59 uint16_t GetAppearance() const override;
58 base::Optional<std::string> GetName() const override; 60 base::Optional<std::string> GetName() const override;
59 bool IsPaired() const override; 61 bool IsPaired() const override;
60 bool IsConnected() const override; 62 bool IsConnected() const override;
61 bool IsGattConnected() const override; 63 bool IsGattConnected() const override;
62 bool IsConnectable() const override; 64 bool IsConnectable() const override;
63 bool IsConnecting() const override; 65 bool IsConnecting() const override;
64 UUIDSet GetUUIDs() const override; 66 UUIDSet GetUUIDs() const override;
67 UUIDSet GetServiceDataUUIDs() const override;
68 const std::vector<uint8_t>* GetServiceDataForUUID(
69 const device::BluetoothUUID& uuid) const override;
65 base::Optional<int8_t> GetInquiryRSSI() const override; 70 base::Optional<int8_t> GetInquiryRSSI() const override;
66 base::Optional<int8_t> GetInquiryTxPower() const override; 71 base::Optional<int8_t> GetInquiryTxPower() const override;
67 bool ExpectingPinCode() const override; 72 bool ExpectingPinCode() const override;
68 bool ExpectingPasskey() const override; 73 bool ExpectingPasskey() const override;
69 bool ExpectingConfirmation() const override; 74 bool ExpectingConfirmation() const override;
70 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 75 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
71 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, 76 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate,
72 const base::Closure& callback, 77 const base::Closure& callback,
73 const ConnectErrorCallback& error_callback) override; 78 const ConnectErrorCallback& error_callback) override;
74 void SetPinCode(const std::string& pincode) override; 79 void SetPinCode(const std::string& pincode) override;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Note: This should remain the last member so it'll be destroyed and 250 // Note: This should remain the last member so it'll be destroyed and
246 // invalidate its weak pointers before any other members are destroyed. 251 // invalidate its weak pointers before any other members are destroyed.
247 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; 252 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_;
248 253
249 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); 254 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ);
250 }; 255 };
251 256
252 } // namespace bluez 257 } // namespace bluez
253 258
254 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ 259 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698