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

Unified Diff: device/bluetooth/bluetooth_low_energy_central_manager_delegate.h

Issue 1226133006: Move CBCentralManager from the Discovery Manager to Adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adddevs
Patch Set: comment edit Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_low_energy_central_manager_delegate.h
diff --git a/device/bluetooth/bluetooth_low_energy_central_manager_delegate.h b/device/bluetooth/bluetooth_low_energy_central_manager_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..df211504e789a305b794cc936b8141309228c0b0
--- /dev/null
+++ b/device/bluetooth/bluetooth_low_energy_central_manager_delegate.h
@@ -0,0 +1,37 @@
+// Copyright 2015 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_CENTRAL_MANAGER_DELEGATE_H_
+#define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
+
+#include "base/mac/sdk_forward_declarations.h"
+#include "base/memory/scoped_ptr.h"
+
+#if defined(OS_IOS)
+#import <CoreBluetooth/CoreBluetooth.h>
+#else
+#import <IOBluetooth/IOBluetooth.h>
+#endif
+
+namespace device {
+
+class BluetoothAdapterMac;
+class BluetoothLowEnergyCentralManagerBridge;
+class BluetoothLowEnergyDiscoveryManagerMac;
+
+} // namespace device
+
+// This class will serve as the Objective-C delegate of CBCentralManager.
+@interface BluetoothLowEnergyCentralManagerDelegate
+ : NSObject<CBCentralManagerDelegate> {
+ scoped_ptr<device::BluetoothLowEnergyCentralManagerBridge> bridge_;
+}
+
+- (id)initWithDiscoveryManager:
+ (device::BluetoothLowEnergyDiscoveryManagerMac*)discovery_manager
+ andAdapter:(device::BluetoothAdapterMac*)adapter;
+
+@end
+
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_CENTRAL_MANAGER_DELEGATE_H_
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac_unittest.mm ('k') | device/bluetooth/bluetooth_low_energy_central_manager_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698