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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 protected: | 119 protected: |
120 friend class base::RefCounted<BluetoothAdvertisement>; | 120 friend class base::RefCounted<BluetoothAdvertisement>; |
121 | 121 |
122 BluetoothAdvertisement(); | 122 BluetoothAdvertisement(); |
123 | 123 |
124 // The destructor will unregister this advertisement. | 124 // The destructor will unregister this advertisement. |
125 virtual ~BluetoothAdvertisement(); | 125 virtual ~BluetoothAdvertisement(); |
126 | 126 |
127 // List of observers interested in event notifications from us. Objects in | 127 // List of observers interested in event notifications from us. Objects in |
128 // |observers_| are expected to outlive a BluetoothAdvertisement object. | 128 // |observers_| are expected to outlive a BluetoothAdvertisement object. |
129 ObserverList<BluetoothAdvertisement::Observer> observers_; | 129 base::ObserverList<BluetoothAdvertisement::Observer> observers_; |
130 | 130 |
131 private: | 131 private: |
132 DISALLOW_COPY_AND_ASSIGN(BluetoothAdvertisement); | 132 DISALLOW_COPY_AND_ASSIGN(BluetoothAdvertisement); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace device | 135 } // namespace device |
136 | 136 |
137 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ | 137 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADVERTISEMENT_H_ |
OLD | NEW |