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

Side by Side Diff: device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h

Issue 1947353002: //device/bluetooth support for attribute properties and permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@properties
Patch Set: Created 4 years, 7 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 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 class BluetoothAdapterBlueZ; 28 class BluetoothAdapterBlueZ;
29 class BluetoothLocalGattCharacteristicBlueZ; 29 class BluetoothLocalGattCharacteristicBlueZ;
30 30
31 // The BluetoothLocalGattServiceBlueZ class implements BluetootGattService 31 // The BluetoothLocalGattServiceBlueZ class implements BluetootGattService
32 // for local GATT services for platforms that use BlueZ. 32 // for local GATT services for platforms that use BlueZ.
33 class BluetoothLocalGattServiceBlueZ 33 class BluetoothLocalGattServiceBlueZ
34 : public BluetoothGattServiceBlueZ, 34 : public BluetoothGattServiceBlueZ,
35 public device::BluetoothLocalGattService { 35 public device::BluetoothLocalGattService {
36 public: 36 public:
37 static base::WeakPtr<device::BluetoothLocalGattService> Create(
38 device::BluetoothAdapter* adapter,
39 const device::BluetoothUUID& uuid,
40 bool is_primary,
41 BluetoothLocalGattService* included_service,
42 BluetoothLocalGattService::Delegate* delegate);
43
44 BluetoothLocalGattServiceBlueZ( 37 BluetoothLocalGattServiceBlueZ(
45 BluetoothAdapterBlueZ* adapter, 38 BluetoothAdapterBlueZ* adapter,
46 const device::BluetoothUUID& uuid, 39 const device::BluetoothUUID& uuid,
47 bool is_primary, 40 bool is_primary,
48 device::BluetoothLocalGattService::Delegate* delegate); 41 device::BluetoothLocalGattService::Delegate* delegate);
49 42
50 ~BluetoothLocalGattServiceBlueZ() override; 43 ~BluetoothLocalGattServiceBlueZ() override;
51 44
52 // device::BluetoothGattService overrides. 45 // device::BluetoothGattService overrides.
53 device::BluetoothUUID GetUUID() const override; 46 device::BluetoothUUID GetUUID() const override;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Note: This should remain the last member so it'll be destroyed and 94 // Note: This should remain the last member so it'll be destroyed and
102 // invalidate its weak pointers before any other members are destroyed. 95 // invalidate its weak pointers before any other members are destroyed.
103 base::WeakPtrFactory<BluetoothLocalGattServiceBlueZ> weak_ptr_factory_; 96 base::WeakPtrFactory<BluetoothLocalGattServiceBlueZ> weak_ptr_factory_;
104 97
105 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattServiceBlueZ); 98 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattServiceBlueZ);
106 }; 99 };
107 100
108 } // namespace bluez 101 } // namespace bluez
109 102
110 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_ 103 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_LOCAL_GATT_SERVICE_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698