| Index: device/bluetooth/bluetooth_low_energy_peripheral_delegate.h
|
| diff --git a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.h b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5d9a0e2d97fc49ed59e8a66813cbce1bf6061e6
|
| --- /dev/null
|
| +++ b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_PERIPHERAL_DELEGATE_H_
|
| +#define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_PERIPHERAL_DELEGATE_H_
|
| +
|
| +#include "base/mac/sdk_forward_declarations.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "build/build_config.h"
|
| +
|
| +#if defined(OS_IOS)
|
| +#import <CoreBluetooth/CoreBluetooth.h>
|
| +#else
|
| +#import <IOBluetooth/IOBluetooth.h>
|
| +#endif
|
| +
|
| +namespace device {
|
| +
|
| +class BluetoothLowEnergyDeviceMac;
|
| +class BluetoothLowEnergyPeripheralBridge;
|
| +
|
| +} // namespace device
|
| +
|
| +// This class will serve as the Objective-C delegate of CBPeripheral.
|
| +@interface BluetoothLowEnergyPeripheralDelegate
|
| + : NSObject<CBPeripheralDelegate> {
|
| + std::unique_ptr<device::BluetoothLowEnergyPeripheralBridge> bridge_;
|
| +}
|
| +
|
| +- (id)initWithBluetoothLowEnergyDeviceMac:
|
| + (device::BluetoothLowEnergyDeviceMac*)device_mac;
|
| +
|
| +@end
|
| +
|
| +#endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_PERIPHERAL_DELEGATE_H_
|
|
|