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.
4 
5 #include "device/bluetooth/bluetooth_advertisement.h"
6 
7 namespace device {
8 
Data(AdvertisementType type)9 BluetoothAdvertisement::Data::Data(AdvertisementType type)
10     : type_(type), include_tx_power_(false) {
11 }
12 
13 BluetoothAdvertisement::Data::~Data() = default;
14 
Data()15 BluetoothAdvertisement::Data::Data()
16     : type_(ADVERTISEMENT_TYPE_BROADCAST), include_tx_power_(false) {
17 }
18 
AddObserver(BluetoothAdvertisement::Observer * observer)19 void BluetoothAdvertisement::AddObserver(
20     BluetoothAdvertisement::Observer* observer) {
21   CHECK(observer);
22   observers_.AddObserver(observer);
23 }
24 
RemoveObserver(BluetoothAdvertisement::Observer * observer)25 void BluetoothAdvertisement::RemoveObserver(
26     BluetoothAdvertisement::Observer* observer) {
27   CHECK(observer);
28   observers_.RemoveObserver(observer);
29 }
30 
31 BluetoothAdvertisement::BluetoothAdvertisement() = default;
32 BluetoothAdvertisement::~BluetoothAdvertisement() = default;
33 
34 }  // namespace device
35