bluetooth_low_energy_peripheral_manager_delegate.h 997 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_PERIPHERAL_MANAGER_DELEGATE_H_
  5. #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_PERIPHERAL_MANAGER_DELEGATE_H_
  6. #import <CoreBluetooth/CoreBluetooth.h>
  7. #include "base/memory/ref_counted.h"
  8. #include "build/build_config.h"
  9. #if !BUILDFLAG(IS_IOS)
  10. #import <IOBluetooth/IOBluetooth.h>
  11. #endif
  12. namespace device {
  13. class BluetoothAdapterMac;
  14. class BluetoothLowEnergyAdvertisementManagerMac;
  15. } // namespace device
  16. @interface BluetoothLowEnergyPeripheralManagerDelegate
  17. : NSObject<CBPeripheralManagerDelegate>
  18. - (instancetype)
  19. initWithAdvertisementManager:
  20. (device::BluetoothLowEnergyAdvertisementManagerMac*)advertisementManager
  21. andAdapter:(device::BluetoothAdapterMac*)adapter;
  22. @end
  23. #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_PERIPHERAL_MANAGER_DELEGATE_H_