1 // Copyright 2015 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.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
8 #include "base/mac/sdk_forward_declarations.h"
9 #include "base/memory/scoped_ptr.h"
12 #import <CoreBluetooth/CoreBluetooth.h>
14 #import <IOBluetooth/IOBluetooth.h>
19 class BluetoothAdapterMac
;
20 class BluetoothLowEnergyCentralManagerBridge
;
21 class BluetoothLowEnergyDiscoveryManagerMac
;
25 // This class will serve as the Objective-C delegate of CBCentralManager.
26 @interface BluetoothLowEnergyCentralManagerDelegate
27 : NSObject
<CBCentralManagerDelegate
> {
28 scoped_ptr
<device::BluetoothLowEnergyCentralManagerBridge
> bridge_
;
31 - (id
)initWithDiscoveryManager
:
32 (device::BluetoothLowEnergyDiscoveryManagerMac
*)discovery_manager
33 andAdapter
:(device::BluetoothAdapterMac
*)adapter
;
37 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_