OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 mojo::Array<mojom::BluetoothPropertyPtr> GetDeviceProperties( | 256 mojo::Array<mojom::BluetoothPropertyPtr> GetDeviceProperties( |
257 mojom::BluetoothPropertyType type, | 257 mojom::BluetoothPropertyType type, |
258 device::BluetoothDevice* device) const; | 258 device::BluetoothDevice* device) const; |
259 mojo::Array<mojom::BluetoothPropertyPtr> GetAdapterProperties( | 259 mojo::Array<mojom::BluetoothPropertyPtr> GetAdapterProperties( |
260 mojom::BluetoothPropertyType type) const; | 260 mojom::BluetoothPropertyType type) const; |
261 mojo::Array<mojom::BluetoothAdvertisingDataPtr> GetAdvertisingData( | 261 mojo::Array<mojom::BluetoothAdvertisingDataPtr> GetAdvertisingData( |
262 device::BluetoothDevice* device) const; | 262 device::BluetoothDevice* device) const; |
263 | 263 |
264 void SendCachedDevicesFound() const; | 264 void SendCachedDevicesFound() const; |
265 bool HasBluetoothInstance() const; | 265 bool HasBluetoothInstance() const; |
| 266 bool CheckBluetoothInstanceVersion(int32_t version_need) const; |
266 | 267 |
267 template <class T> | 268 template <class T> |
268 T* FindGattObjectFromUuid(const std::vector<T*> objs, | 269 T* FindGattObjectFromUuid(const std::vector<T*> objs, |
269 const device::BluetoothUUID uuid) const; | 270 const device::BluetoothUUID uuid) const; |
270 device::BluetoothRemoteGattCharacteristic* FindGattCharacteristic( | 271 device::BluetoothRemoteGattCharacteristic* FindGattCharacteristic( |
271 mojom::BluetoothAddressPtr remote_addr, | 272 mojom::BluetoothAddressPtr remote_addr, |
272 mojom::BluetoothGattServiceIDPtr service_id, | 273 mojom::BluetoothGattServiceIDPtr service_id, |
273 mojom::BluetoothGattIDPtr char_id) const; | 274 mojom::BluetoothGattIDPtr char_id) const; |
274 | 275 |
275 device::BluetoothRemoteGattDescriptor* FindGattDescriptor( | 276 device::BluetoothRemoteGattDescriptor* FindGattDescriptor( |
(...skipping 15 matching lines...) Expand all Loading... |
291 | 292 |
292 // WeakPtrFactory to use for callbacks. | 293 // WeakPtrFactory to use for callbacks. |
293 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; | 294 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; |
294 | 295 |
295 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); | 296 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); |
296 }; | 297 }; |
297 | 298 |
298 } // namespace arc | 299 } // namespace arc |
299 | 300 |
300 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ | 301 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ |
OLD | NEW |