| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #include "ipc/ipc_message_macros.h" | 81 #include "ipc/ipc_message_macros.h" |
| 82 | 82 |
| 83 #include <stdint.h> | 83 #include <stdint.h> |
| 84 | 84 |
| 85 #include "content/common/bluetooth/bluetooth_device.h" | 85 #include "content/common/bluetooth/bluetooth_device.h" |
| 86 #include "content/common/bluetooth/bluetooth_scan_filter.h" | 86 #include "content/common/bluetooth/bluetooth_scan_filter.h" |
| 87 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError
.h" | 87 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError
.h" |
| 88 | 88 |
| 89 #define IPC_MESSAGE_START BluetoothMsgStart | 89 #define IPC_MESSAGE_START BluetoothMsgStart |
| 90 | 90 |
| 91 IPC_ENUM_TRAITS_MAX_VALUE( | |
| 92 device::BluetoothDevice::VendorIDSource, | |
| 93 device::BluetoothDevice::VendorIDSource::VENDOR_ID_MAX_VALUE) | |
| 94 | |
| 95 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothDevice) | 91 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothDevice) |
| 96 IPC_STRUCT_TRAITS_MEMBER(id) | 92 IPC_STRUCT_TRAITS_MEMBER(id) |
| 97 IPC_STRUCT_TRAITS_MEMBER(name) | 93 IPC_STRUCT_TRAITS_MEMBER(name) |
| 98 IPC_STRUCT_TRAITS_MEMBER(tx_power) | 94 IPC_STRUCT_TRAITS_MEMBER(tx_power) |
| 99 IPC_STRUCT_TRAITS_MEMBER(rssi) | 95 IPC_STRUCT_TRAITS_MEMBER(rssi) |
| 100 IPC_STRUCT_TRAITS_MEMBER(device_class) | |
| 101 IPC_STRUCT_TRAITS_MEMBER(vendor_id_source) | |
| 102 IPC_STRUCT_TRAITS_MEMBER(vendor_id) | |
| 103 IPC_STRUCT_TRAITS_MEMBER(product_id) | |
| 104 IPC_STRUCT_TRAITS_MEMBER(product_version) | |
| 105 IPC_STRUCT_TRAITS_MEMBER(uuids) | 96 IPC_STRUCT_TRAITS_MEMBER(uuids) |
| 106 IPC_STRUCT_TRAITS_END() | 97 IPC_STRUCT_TRAITS_END() |
| 107 | 98 |
| 108 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebBluetoothError, | 99 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebBluetoothError, |
| 109 blink::WebBluetoothError::ENUM_MAX_VALUE) | 100 blink::WebBluetoothError::ENUM_MAX_VALUE) |
| 110 | 101 |
| 111 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothScanFilter) | 102 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothScanFilter) |
| 112 IPC_STRUCT_TRAITS_MEMBER(services) | 103 IPC_STRUCT_TRAITS_MEMBER(services) |
| 113 IPC_STRUCT_TRAITS_MEMBER(name) | 104 IPC_STRUCT_TRAITS_MEMBER(name) |
| 114 IPC_STRUCT_TRAITS_MEMBER(namePrefix) | 105 IPC_STRUCT_TRAITS_MEMBER(namePrefix) |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 int /* frame_routing_id */, | 165 int /* frame_routing_id */, |
| 175 std::string /* device_id */) | 166 std::string /* device_id */) |
| 176 | 167 |
| 177 // Gets primary service from bluetooth device. | 168 // Gets primary service from bluetooth device. |
| 178 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService, | 169 IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetPrimaryService, |
| 179 int /* thread_id */, | 170 int /* thread_id */, |
| 180 int /* request_id */, | 171 int /* request_id */, |
| 181 int /* frame_routing_id */, | 172 int /* frame_routing_id */, |
| 182 std::string /* device_id */, | 173 std::string /* device_id */, |
| 183 std::string /* service_uuid */) | 174 std::string /* service_uuid */) |
| OLD | NEW |