| OLD | NEW |
| (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 #ifndef CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_ | |
| 6 #define CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/strings/string16.h" | |
| 13 #include "content/common/content_export.h" | |
| 14 #include "device/bluetooth/bluetooth_device.h" | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 // Data sent over IPC representing a Bluetooth device, corresponding to | |
| 19 // blink::WebBluetoothDevice. | |
| 20 struct CONTENT_EXPORT BluetoothDevice { | |
| 21 BluetoothDevice(); | |
| 22 BluetoothDevice(const std::string& id, | |
| 23 const base::string16& name, | |
| 24 const std::vector<std::string>& uuids); | |
| 25 ~BluetoothDevice(); | |
| 26 | |
| 27 static std::vector<std::string> UUIDsFromBluetoothUUIDs( | |
| 28 const device::BluetoothDevice::UUIDList& uuid_list); | |
| 29 | |
| 30 std::string id; | |
| 31 base::string16 name; | |
| 32 std::vector<std::string> uuids; // 128bit UUIDs with dashes. 36 chars. | |
| 33 }; | |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_ | |
| OLD | NEW |