| 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_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <string> | 11 #include <string> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 16 #include "device/bluetooth/bluetooth_export.h" | 19 #include "device/bluetooth/bluetooth_export.h" |
| 17 | 20 |
| 18 namespace device { | 21 namespace device { |
| 19 | 22 |
| 20 // BluetoothAdvertisement represents an advertisement which advertises over the | 23 // BluetoothAdvertisement represents an advertisement which advertises over the |
| 21 // LE channel during its lifetime. | 24 // LE channel during its lifetime. |
| 22 class DEVICE_BLUETOOTH_EXPORT BluetoothAdvertisement | 25 class DEVICE_BLUETOOTH_EXPORT BluetoothAdvertisement |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // |observers_| are expected to outlive a BluetoothAdvertisement object. | 131 // |observers_| are expected to outlive a BluetoothAdvertisement object. |
| 129 base::ObserverList<BluetoothAdvertisement::Observer> observers_; | 132 base::ObserverList<BluetoothAdvertisement::Observer> observers_; |
| 130 | 133 |
| 131 private: | 134 private: |
| 132 DISALLOW_COPY_AND_ASSIGN(BluetoothAdvertisement); | 135 DISALLOW_COPY_AND_ASSIGN(BluetoothAdvertisement); |
| 133 }; | 136 }; |
| 134 | 137 |
| 135 } // namespace device | 138 } // namespace device |
| 136 | 139 |
| 137 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ | 140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ |
| OLD | NEW |