Update V8 to version 4.7.42.
[chromium-blink-merge.git] / content / common / bluetooth / bluetooth_device.h
blob987477626e251a690c858f310997b2b5ecf25ad8
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.
5 #ifndef CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/strings/string16.h"
12 #include "content/common/content_export.h"
13 #include "device/bluetooth/bluetooth_device.h"
15 namespace content {
17 // Data sent over IPC representing a Bluetooth device, corresponding to
18 // blink::WebBluetoothDevice.
19 struct CONTENT_EXPORT BluetoothDevice {
20 BluetoothDevice();
21 BluetoothDevice(const std::string& instance_id,
22 const base::string16& name,
23 uint32 device_class,
24 device::BluetoothDevice::VendorIDSource vendor_id_source,
25 uint16 vendor_id,
26 uint16 product_id,
27 uint16 product_version,
28 bool paired,
29 const std::vector<std::string>& uuids);
30 ~BluetoothDevice();
32 static std::vector<std::string> UUIDsFromBluetoothUUIDs(
33 const device::BluetoothDevice::UUIDList& uuid_list);
35 std::string instance_id;
36 base::string16 name;
37 uint32 device_class;
38 device::BluetoothDevice::VendorIDSource vendor_id_source;
39 uint16 vendor_id;
40 uint16 product_id;
41 uint16 product_version;
42 bool paired;
43 std::vector<std::string> uuids; // 128bit UUIDs with dashes. 36 chars.
46 } // namespace content
48 #endif // CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_