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

Side by Side Diff: device/bluetooth/bluetooth_service_record_chromeos.h

Issue 12310048: Bluetooth: Add a "connectable" property to the BluetoothDevice. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: niiiiiiiiiiits Created 7 years, 10 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
7 7
8 #include <bluetooth/bluetooth.h> 8 #include <bluetooth/bluetooth.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "device/bluetooth/bluetooth_service_record.h" 13 #include "device/bluetooth/bluetooth_service_record.h"
14 14
15 class XmlReader; 15 class XmlReader;
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 // BluetoothServiceRecordChromeOS is an implementation of BluetoothServiceRecord 19 // BluetoothServiceRecordChromeOS is an implementation of BluetoothServiceRecord
20 // for the ChromeOS platform. 20 // for the ChromeOS platform.
21 class BluetoothServiceRecordChromeOS : public device::BluetoothServiceRecord { 21 class BluetoothServiceRecordChromeOS : public device::BluetoothServiceRecord {
22 public: 22 public:
23 BluetoothServiceRecordChromeOS(const std::string& address, 23 BluetoothServiceRecordChromeOS(const std::string& address,
24 const std::string& xml_data); 24 const std::string& xml_data);
25 25
26 void GetBluetoothAddress(bdaddr_t* out_address) const; 26 void GetBluetoothAddress(bdaddr_t* out_address) const;
27 27
28 private: 28 private:
29 void ExtractChannels(XmlReader* reader); 29 void ExtractProtocolDescriptors(XmlReader* reader);
30 void ExtractUuid(XmlReader* reader); 30 void ExtractServiceClassUuid(XmlReader* reader);
31 31
32 DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordChromeOS); 32 DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordChromeOS);
33 }; 33 };
34 34
35 } // namespace chromeos 35 } // namespace chromeos
36 36
37 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_ 37 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_service_record.h ('k') | device/bluetooth/bluetooth_service_record_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698