| OLD | NEW |
| 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_map> |
| 12 #include <unordered_set> | 13 #include <unordered_set> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "base/macros.h" | 16 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 18 #include "base/sequenced_task_runner.h" | 19 #include "base/sequenced_task_runner.h" |
| 19 #include "dbus/object_path.h" | 20 #include "dbus/object_path.h" |
| 20 #include "device/bluetooth/bluetooth_common.h" | 21 #include "device/bluetooth/bluetooth_common.h" |
| 21 #include "device/bluetooth/bluetooth_device.h" | 22 #include "device/bluetooth/bluetooth_device.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 uint16_t GetProductID() const override; | 58 uint16_t GetProductID() const override; |
| 58 uint16_t GetDeviceID() const override; | 59 uint16_t GetDeviceID() const override; |
| 59 uint16_t GetAppearance() const override; | 60 uint16_t GetAppearance() const override; |
| 60 base::Optional<std::string> GetName() const override; | 61 base::Optional<std::string> GetName() const override; |
| 61 bool IsPaired() const override; | 62 bool IsPaired() const override; |
| 62 bool IsConnected() const override; | 63 bool IsConnected() const override; |
| 63 bool IsGattConnected() const override; | 64 bool IsGattConnected() const override; |
| 64 bool IsConnectable() const override; | 65 bool IsConnectable() const override; |
| 65 bool IsConnecting() const override; | 66 bool IsConnecting() const override; |
| 66 UUIDSet GetUUIDs() const override; | 67 UUIDSet GetUUIDs() const override; |
| 68 std::unordered_map<uint16_t, std::vector<uint8_t>> GetManufacturerData() |
| 69 const override; |
| 67 base::Optional<int8_t> GetInquiryRSSI() const override; | 70 base::Optional<int8_t> GetInquiryRSSI() const override; |
| 68 base::Optional<int8_t> GetInquiryTxPower() const override; | 71 base::Optional<int8_t> GetInquiryTxPower() const override; |
| 72 base::Optional<uint8_t> GetFlags() const override; |
| 69 bool ExpectingPinCode() const override; | 73 bool ExpectingPinCode() const override; |
| 70 bool ExpectingPasskey() const override; | 74 bool ExpectingPasskey() const override; |
| 71 bool ExpectingConfirmation() const override; | 75 bool ExpectingConfirmation() const override; |
| 72 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 76 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
| 73 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, | 77 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, |
| 74 const base::Closure& callback, | 78 const base::Closure& callback, |
| 75 const ConnectErrorCallback& error_callback) override; | 79 const ConnectErrorCallback& error_callback) override; |
| 76 void SetPinCode(const std::string& pincode) override; | 80 void SetPinCode(const std::string& pincode) override; |
| 77 void SetPasskey(uint32_t passkey) override; | 81 void SetPasskey(uint32_t passkey) override; |
| 78 void ConfirmPairing() override; | 82 void ConfirmPairing() override; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // Note: This should remain the last member so it'll be destroyed and | 265 // Note: This should remain the last member so it'll be destroyed and |
| 262 // invalidate its weak pointers before any other members are destroyed. | 266 // invalidate its weak pointers before any other members are destroyed. |
| 263 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; | 267 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; |
| 264 | 268 |
| 265 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); | 269 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); |
| 266 }; | 270 }; |
| 267 | 271 |
| 268 } // namespace bluez | 272 } // namespace bluez |
| 269 | 273 |
| 270 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ | 274 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
| OLD | NEW |