| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 #include "device/bluetooth/bluetooth_gatt_notify_session_mac.h" | |
| 6 | |
| 7 namespace device { | |
| 8 BluetoothGattNotifySessionMac::BluetoothGattNotifySessionMac( | |
| 9 base::WeakPtr<BluetoothRemoteGattCharacteristicMac> characteristic) | |
| 10 : characteristic_(characteristic) {} | |
| 11 | |
| 12 BluetoothGattNotifySessionMac::~BluetoothGattNotifySessionMac() {} | |
| 13 | |
| 14 std::string BluetoothGattNotifySessionMac::GetCharacteristicIdentifier() const { | |
| 15 if (characteristic_.get()) | |
| 16 return characteristic_->GetIdentifier(); | |
| 17 return std::string(); | |
| 18 } | |
| 19 | |
| 20 bool BluetoothGattNotifySessionMac::IsActive() { | |
| 21 return characteristic_.get() != nullptr; | |
| 22 } | |
| 23 | |
| 24 void BluetoothGattNotifySessionMac::Stop(const base::Closure& callback) { | |
| 25 NOTIMPLEMENTED(); | |
| 26 } | |
| 27 | |
| 28 } // namespace device | |
| OLD | NEW |