1 // Copyright (c) 2013 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
8 #include <bluetooth/bluetooth.h>
12 #include "base/basictypes.h"
13 #include "device/bluetooth/bluetooth_service_record.h"
19 // BluetoothServiceRecordChromeOS is an implementation of BluetoothServiceRecord
20 // for the ChromeOS platform.
21 class BluetoothServiceRecordChromeOS
: public device::BluetoothServiceRecord
{
23 BluetoothServiceRecordChromeOS(const std::string
& address
,
24 const std::string
& xml_data
);
26 void GetBluetoothAddress(bdaddr_t
* out_address
) const;
29 void ExtractProtocolDescriptors(XmlReader
* reader
);
30 void ExtractServiceClassUuid(XmlReader
* reader
);
32 DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordChromeOS
);
35 } // namespace chromeos
37 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_