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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_
7
8 #include "device/bluetooth/bluetooth_gatt_connection.h"
9
10 #include "device/bluetooth/bluetooth_adapter.h"
11
12 namespace device {
13
14 class BluetoothLowEnergyDeviceMac;
15
16 class DEVICE_BLUETOOTH_EXPORT BluetoothGattConnectionMac
17 : public BluetoothGattConnection {
18 public:
19 BluetoothGattConnectionMac(scoped_refptr<BluetoothAdapter> adapter,
20 std::string device_address);
21 ~BluetoothGattConnectionMac() override;
22
23 // BluetoothGattConenction overrides.
24 std::string GetDeviceAddress() const override;
25 bool IsConnected() override;
26 void Disconnect(const base::Closure& callback) override;
27
28 // Bluetooth adapter the connection is associated with.
29 scoped_refptr<BluetoothAdapter> adapter_;
30
31 // The address of the associated Bluetooth device.
32 std::string device_address_;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionMac);
36 };
37
38 } // namespace device
39
40 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_
OLDNEW
« 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