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

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

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
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_gatt_notify_session_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_MAC_H_
7 7
8 #include "device/bluetooth/bluetooth_gatt_notify_session.h" 8 #include "device/bluetooth/bluetooth_gatt_notify_session.h"
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_win.h" 12 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h"
13 13
14 namespace device { 14 namespace device {
15 class DEVICE_BLUETOOTH_EXPORT BluetoothGattNotifySessionWin 15 class DEVICE_BLUETOOTH_EXPORT BluetoothGattNotifySessionMac
16 : public BluetoothGattNotifySession { 16 : public BluetoothGattNotifySession {
17 public: 17 public:
18 BluetoothGattNotifySessionWin( 18 BluetoothGattNotifySessionMac(
19 base::WeakPtr<BluetoothRemoteGattCharacteristicWin> characteristic); 19 base::WeakPtr<BluetoothRemoteGattCharacteristicMac> characteristic);
20 ~BluetoothGattNotifySessionWin() override; 20 ~BluetoothGattNotifySessionMac() override;
21 21
22 // Override BluetoothGattNotifySession interfaces. 22 // Override BluetoothGattNotifySession interfaces.
23 std::string GetCharacteristicIdentifier() const override; 23 std::string GetCharacteristicIdentifier() const override;
24 bool IsActive() override; 24 bool IsActive() override;
25 void Stop(const base::Closure& callback) override; 25 void Stop(const base::Closure& callback) override;
26 26
27 private: 27 private:
28 base::WeakPtr<BluetoothRemoteGattCharacteristicWin> characteristic_; 28 base::WeakPtr<BluetoothRemoteGattCharacteristicMac> characteristic_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionWin); 30 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionMac);
31 }; 31 };
32 32
33 } // namespace device 33 } // namespace device
34 34
35 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_WIN_H_ 35 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_gatt_notify_session_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698