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