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

Side by Side Diff: content/common/bluetooth/bluetooth_device.h

Issue 885723002: bluetooth: Provide more device attributes in requestDevice reply. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-0
Patch Set: uuids initializer fixed. Created 5 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
« no previous file with comments | « content/common/bluetooth/DEPS ('k') | content/common/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_
7
8 #include <string>
9
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"
14
15 namespace content {
16
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 bool connected,
30 const std::vector<std::string>& uuids);
31 ~BluetoothDevice();
32
33 static std::vector<std::string> UUIDsFromBluetoothUUIDs(
34 const device::BluetoothDevice::UUIDList& uuid_list);
35
36 std::string instance_id;
37 base::string16 name;
38 uint32 device_class;
39 device::BluetoothDevice::VendorIDSource vendor_id_source;
40 uint16 vendor_id;
41 uint16 product_id;
42 uint16 product_version;
43 bool paired;
44 bool connected;
45 std::vector<std::string> uuids; // 128bit UUIDs with dashes. 36 chars.
46 };
47
48 } // namespace content
49
50 #endif // CONTENT_COMMON_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « content/common/bluetooth/DEPS ('k') | content/common/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698