Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: device/bluetooth/bluetooth_low_energy_peripheral_delegate.h

Issue 1948763003: Adding support for service scan on OS X (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Adding disconnect with error Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
ortuno 2016/05/06 16:03:33 nit: 2016 :)
jlebel 2016/05/07 00:16:11 Done.
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_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
ortuno 2016/05/06 16:03:33 nit: Wrong ifndef
jlebel 2016/05/07 00:16:11 Done.
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
7 7
8 #include <memory>
9
10 #include "base/mac/sdk_forward_declarations.h" 8 #include "base/mac/sdk_forward_declarations.h"
9 #include "base/memory/ref_counted.h"
11 #include "build/build_config.h" 10 #include "build/build_config.h"
12 11
13 #if defined(OS_IOS) 12 #if defined(OS_IOS)
14 #import <CoreBluetooth/CoreBluetooth.h> 13 #import <CoreBluetooth/CoreBluetooth.h>
15 #else 14 #else
16 #import <IOBluetooth/IOBluetooth.h> 15 #import <IOBluetooth/IOBluetooth.h>
17 #endif 16 #endif
18 17
19 namespace device { 18 namespace device {
20 19
21 class BluetoothAdapterMac; 20 class BluetoothLowEnergyDeviceMac;
22 class BluetoothLowEnergyCentralManagerBridge; 21 class BluetoothLowEnergyPeripheralBridge;
23 class BluetoothLowEnergyDiscoveryManagerMac;
24 22
25 } // namespace device 23 } // namespace device
26 24
27 // This class will serve as the Objective-C delegate of CBCentralManager. 25 // This class will serve as the Objective-C delegate of CBPeripheral.
28 @interface BluetoothLowEnergyCentralManagerDelegate 26 @interface BluetoothLowEnergyPeripheralDelegate
29 : NSObject<CBCentralManagerDelegate> { 27 : NSObject<CBPeripheralDelegate> {
30 std::unique_ptr<device::BluetoothLowEnergyCentralManagerBridge> bridge_; 28 std::unique_ptr<device::BluetoothLowEnergyPeripheralBridge> bridge_;
31 } 29 }
32 30
33 - (id)initWithDiscoveryManager: 31 - (id)initWithBluetoothLowEnergyDeviceMac:
34 (device::BluetoothLowEnergyDiscoveryManagerMac*)discovery_manager 32 (device::BluetoothLowEnergyDeviceMac*)device_mac;
35 andAdapter:(device::BluetoothAdapterMac*)adapter;
36 33
37 @end 34 @end
38 35
39 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_ 36 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698