Roll src/third_party/WebKit 787a07c:716df21 (svn 201034:201036)
[chromium-blink-merge.git] / device / bluetooth / bluetooth_channel_mac.mm
blobfc242ed64b1e28656205e265d0043bd8732ce5bb
1 // Copyright 2014 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.
5 #include "device/bluetooth/bluetooth_channel_mac.h"
7 #import <IOBluetooth/IOBluetooth.h>
9 #include "base/logging.h"
10 #include "device/bluetooth/bluetooth_classic_device_mac.h"
12 namespace device {
14 BluetoothChannelMac::BluetoothChannelMac() : socket_(NULL) {
17 BluetoothChannelMac::~BluetoothChannelMac() {
20 void BluetoothChannelMac::SetSocket(BluetoothSocketMac* socket) {
21   DCHECK(!socket_);
22   socket_ = socket;
25 std::string BluetoothChannelMac::GetDeviceAddress() {
26   return BluetoothClassicDeviceMac::GetDeviceAddress(GetDevice());
29 }  // namespace device