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

Side by Side Diff: device/bluetooth/bluetooth_gatt_notify_session_mac.mm

Issue 2094633003: Bluetooth: Mac: implementation for start notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_read_characteristicscan_servicescan_cleanup
Patch Set: Addressing msarda's comments Created 4 years, 5 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/bluetooth_gatt_notify_session_win.h" 5 #include "device/bluetooth/bluetooth_gatt_notify_session_mac.h"
6 6
7 namespace device { 7 namespace device {
8 BluetoothGattNotifySessionWin::BluetoothGattNotifySessionWin( 8 BluetoothGattNotifySessionMac::BluetoothGattNotifySessionMac(
9 base::WeakPtr<BluetoothRemoteGattCharacteristicWin> characteristic) 9 base::WeakPtr<BluetoothRemoteGattCharacteristicMac> characteristic)
10 : characteristic_(characteristic) {} 10 : characteristic_(characteristic) {}
11 11
12 BluetoothGattNotifySessionWin::~BluetoothGattNotifySessionWin() {} 12 BluetoothGattNotifySessionMac::~BluetoothGattNotifySessionMac() {}
13 13
14 std::string BluetoothGattNotifySessionWin::GetCharacteristicIdentifier() const { 14 std::string BluetoothGattNotifySessionMac::GetCharacteristicIdentifier() const {
15 if (characteristic_.get()) 15 if (characteristic_.get())
16 return characteristic_->GetIdentifier(); 16 return characteristic_->GetIdentifier();
17 return std::string(); 17 return std::string();
18 } 18 }
19 19
20 bool BluetoothGattNotifySessionWin::IsActive() { 20 bool BluetoothGattNotifySessionMac::IsActive() {
21 return characteristic_.get() != nullptr; 21 return characteristic_.get() != nullptr;
22 } 22 }
23 23
24 void BluetoothGattNotifySessionWin::Stop(const base::Closure& callback) { 24 void BluetoothGattNotifySessionMac::Stop(const base::Closure& callback) {
25 NOTIMPLEMENTED(); 25 NOTIMPLEMENTED();
26 } 26 }
27 27
28 } // namespace device 28 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_gatt_notify_session_mac.h ('k') | device/bluetooth/bluetooth_low_energy_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698