chrome: Remove unneeded dependencies on libxml.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_advertisement.cc
blob05b0e52d2223154dcc3a4a9ac5c8aa5cc379ae7d
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"
7 namespace device {
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) {
22 CHECK(observer);
23 observers_.AddObserver(observer);
26 void BluetoothAdvertisement::RemoveObserver(
27 BluetoothAdvertisement::Observer* observer) {
28 CHECK(observer);
29 observers_.RemoveObserver(observer);
32 BluetoothAdvertisement::BluetoothAdvertisement() {
34 BluetoothAdvertisement::~BluetoothAdvertisement() {
37 } // namespace device