OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Messages for Web Bluetooth API. | 5 // Messages for Web Bluetooth API. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 // Web Bluetooth Security | 8 // Web Bluetooth Security |
9 // The security mechanisms of Bluetooth are described in the specification: | 9 // The security mechanisms of Bluetooth are described in the specification: |
10 // https://webbluetoothchrome.github.io/web-bluetooth | 10 // https://webbluetoothchrome.github.io/web-bluetooth |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 #define IPC_MESSAGE_START BluetoothMsgStart | 86 #define IPC_MESSAGE_START BluetoothMsgStart |
87 | 87 |
88 IPC_ENUM_TRAITS_MAX_VALUE( | 88 IPC_ENUM_TRAITS_MAX_VALUE( |
89 device::BluetoothDevice::VendorIDSource, | 89 device::BluetoothDevice::VendorIDSource, |
90 device::BluetoothDevice::VendorIDSource::VENDOR_ID_MAX_VALUE) | 90 device::BluetoothDevice::VendorIDSource::VENDOR_ID_MAX_VALUE) |
91 | 91 |
92 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothDevice) | 92 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothDevice) |
93 IPC_STRUCT_TRAITS_MEMBER(id) | 93 IPC_STRUCT_TRAITS_MEMBER(id) |
94 IPC_STRUCT_TRAITS_MEMBER(name) | 94 IPC_STRUCT_TRAITS_MEMBER(name) |
| 95 IPC_STRUCT_TRAITS_MEMBER(tx_power) |
| 96 IPC_STRUCT_TRAITS_MEMBER(rssi) |
95 IPC_STRUCT_TRAITS_MEMBER(device_class) | 97 IPC_STRUCT_TRAITS_MEMBER(device_class) |
96 IPC_STRUCT_TRAITS_MEMBER(vendor_id_source) | 98 IPC_STRUCT_TRAITS_MEMBER(vendor_id_source) |
97 IPC_STRUCT_TRAITS_MEMBER(vendor_id) | 99 IPC_STRUCT_TRAITS_MEMBER(vendor_id) |
98 IPC_STRUCT_TRAITS_MEMBER(product_id) | 100 IPC_STRUCT_TRAITS_MEMBER(product_id) |
99 IPC_STRUCT_TRAITS_MEMBER(product_version) | 101 IPC_STRUCT_TRAITS_MEMBER(product_version) |
100 IPC_STRUCT_TRAITS_MEMBER(paired) | 102 IPC_STRUCT_TRAITS_MEMBER(paired) |
101 IPC_STRUCT_TRAITS_MEMBER(uuids) | 103 IPC_STRUCT_TRAITS_MEMBER(uuids) |
102 IPC_STRUCT_TRAITS_END() | 104 IPC_STRUCT_TRAITS_END() |
103 | 105 |
104 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebBluetoothError, | 106 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebBluetoothError, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 268 |
267 // Register to receive characteristic value changed events. | 269 // Register to receive characteristic value changed events. |
268 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, | 270 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic, |
269 int /* thread_id */, | 271 int /* thread_id */, |
270 std::string /* characteristics_instance_id */) | 272 std::string /* characteristics_instance_id */) |
271 | 273 |
272 // Unregister from characteristic value changed events. | 274 // Unregister from characteristic value changed events. |
273 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, | 275 IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic, |
274 int /* thread_id */, | 276 int /* thread_id */, |
275 std::string /* characteristics_instance_id */) | 277 std::string /* characteristics_instance_id */) |
OLD | NEW |