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
3 // found in the LICENSE file.
5 #include "device/bluetooth/bluetooth_advertisement.h"
9 BluetoothAdvertisement::Data::Data(AdvertisementType type
)
10 : type_(type
), include_tx_power_(false) {
13 BluetoothAdvertisement::Data::~Data() {
16 BluetoothAdvertisement::Data::Data()
17 : type_(ADVERTISEMENT_TYPE_BROADCAST
), include_tx_power_(false) {
20 void BluetoothAdvertisement::AddObserver(
21 BluetoothAdvertisement::Observer
* observer
) {
23 observers_
.AddObserver(observer
);
26 void BluetoothAdvertisement::RemoveObserver(
27 BluetoothAdvertisement::Observer
* observer
) {
29 observers_
.RemoveObserver(observer
);
32 BluetoothAdvertisement::BluetoothAdvertisement() {
34 BluetoothAdvertisement::~BluetoothAdvertisement() {