summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_channel_mac.mm
blob: fc242ed64b1e28656205e265d0043bd8732ce5bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2014 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.

#include "device/bluetooth/bluetooth_channel_mac.h"

#import <IOBluetooth/IOBluetooth.h>

#include "base/logging.h"
#include "device/bluetooth/bluetooth_classic_device_mac.h"

namespace device {

BluetoothChannelMac::BluetoothChannelMac() : socket_(NULL) {
}

BluetoothChannelMac::~BluetoothChannelMac() {
}

void BluetoothChannelMac::SetSocket(BluetoothSocketMac* socket) {
  DCHECK(!socket_);
  socket_ = socket;
}

std::string BluetoothChannelMac::GetDeviceAddress() {
  return BluetoothClassicDeviceMac::GetDeviceAddress(GetDevice());
}

}  // namespace device