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

Unified Diff: device/bluetooth/bluetooth_gatt_connection_mac.h

Issue 1261093004: Adding BluetoothGattConnectionMac class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test3
Patch Set: pulling in landed prev CL Created 5 years, 4 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
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_gatt_connection_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_gatt_connection_mac.h
diff --git a/device/bluetooth/bluetooth_gatt_connection_mac.h b/device/bluetooth/bluetooth_gatt_connection_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfd3681291cbddaab9252cb3839cb03501fb9ece
--- /dev/null
+++ b/device/bluetooth/bluetooth_gatt_connection_mac.h
@@ -0,0 +1,40 @@
+// 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_GATT_CONNECTION_MAC_H_
+#define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_
+
+#include "device/bluetooth/bluetooth_gatt_connection.h"
+
+#include "device/bluetooth/bluetooth_adapter.h"
+
+namespace device {
+
+class BluetoothLowEnergyDeviceMac;
+
+class DEVICE_BLUETOOTH_EXPORT BluetoothGattConnectionMac
+ : public BluetoothGattConnection {
+ public:
+ BluetoothGattConnectionMac(scoped_refptr<BluetoothAdapter> adapter,
+ std::string device_address);
+ ~BluetoothGattConnectionMac() override;
+
+ // BluetoothGattConenction overrides.
+ std::string GetDeviceAddress() const override;
+ bool IsConnected() override;
+ void Disconnect(const base::Closure& callback) override;
+
+ // Bluetooth adapter the connection is associated with.
+ scoped_refptr<BluetoothAdapter> adapter_;
+
+ // The address of the associated Bluetooth device.
+ std::string device_address_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionMac);
+};
+
+} // namespace device
+
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_gatt_connection_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698