Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: device/bluetooth/bluetooth_advertisement.cc

Issue 1054743003: Add CPP API for BLE advertisments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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() : type_(ADVERTISEMENT_TYPE_BROADCAST) {
17 }
18
19 void BluetoothAdvertisement::AddObserver(
20 BluetoothAdvertisement::Observer* observer) {
21 CHECK(observer);
22 observers_.AddObserver(observer);
23 }
24
25 void BluetoothAdvertisement::RemoveObserver(
26 BluetoothAdvertisement::Observer* observer) {
27 CHECK(observer);
28 observers_.RemoveObserver(observer);
29 }
30
31 BluetoothAdvertisement::BluetoothAdvertisement() {
32 }
33 BluetoothAdvertisement::~BluetoothAdvertisement() {
34 }
35
36 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698