OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ADVERTISEMENT_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_BLUEZ_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_BLUEZ_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "device/bluetooth/bluetooth_adapter.h" | 9 #include "device/bluetooth/bluetooth_adapter.h" |
10 #include "device/bluetooth/bluetooth_advertisement.h" | 10 #include "device/bluetooth/bluetooth_advertisement.h" |
11 #include "device/bluetooth/bluetooth_export.h" | 11 #include "device/bluetooth/bluetooth_export.h" |
12 #include "device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.h" | 12 #include "device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.h" |
13 | 13 |
14 namespace bluez { | 14 namespace bluez { |
15 class BluetoothLEAdvertisementServiceProvider; | 15 class BluetoothLEAdvertisementServiceProvider; |
16 } | 16 } |
17 | 17 |
18 namespace bluez { | 18 namespace bluez { |
19 | 19 |
20 class BluetoothAdapterBlueZ; | 20 class BluetoothAdapterBlueZ; |
21 | 21 |
22 // The BluetoothAdvertisementBlueZ class implements BluetoothAdvertisement | 22 // The BluetoothAdvertisementBlueZ class implements BluetoothAdvertisement |
23 // for the Chrome OS platform. | 23 // for platforms that use BlueZ. |
24 class DEVICE_BLUETOOTH_EXPORT BluetoothAdvertisementBlueZ | 24 class DEVICE_BLUETOOTH_EXPORT BluetoothAdvertisementBlueZ |
25 : public device::BluetoothAdvertisement, | 25 : public device::BluetoothAdvertisement, |
26 public bluez::BluetoothLEAdvertisementServiceProvider::Delegate { | 26 public bluez::BluetoothLEAdvertisementServiceProvider::Delegate { |
27 public: | 27 public: |
28 BluetoothAdvertisementBlueZ( | 28 BluetoothAdvertisementBlueZ( |
29 scoped_ptr<device::BluetoothAdvertisement::Data> data, | 29 scoped_ptr<device::BluetoothAdvertisement::Data> data, |
30 scoped_refptr<BluetoothAdapterBlueZ> adapter); | 30 scoped_refptr<BluetoothAdapterBlueZ> adapter); |
31 | 31 |
32 // BluetoothAdvertisement overrides: | 32 // BluetoothAdvertisement overrides: |
33 void Unregister(const SuccessCallback& success_callback, | 33 void Unregister(const SuccessCallback& success_callback, |
(...skipping 19 matching lines...) Expand all Loading... |
53 // Adapter this advertisement is advertising on. | 53 // Adapter this advertisement is advertising on. |
54 scoped_refptr<BluetoothAdapterBlueZ> adapter_; | 54 scoped_refptr<BluetoothAdapterBlueZ> adapter_; |
55 scoped_ptr<bluez::BluetoothLEAdvertisementServiceProvider> provider_; | 55 scoped_ptr<bluez::BluetoothLEAdvertisementServiceProvider> provider_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(BluetoothAdvertisementBlueZ); | 57 DISALLOW_COPY_AND_ASSIGN(BluetoothAdvertisementBlueZ); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace bluez | 60 } // namespace bluez |
61 | 61 |
62 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_BLUEZ_H_ | 62 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_BLUEZ_H_ |
OLD | NEW |