| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_STRUCT_TRAITS_BEGIN(content::BluetoothDevice) | 91 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothDevice) |
| 92 IPC_STRUCT_TRAITS_MEMBER(id) | 92 IPC_STRUCT_TRAITS_MEMBER(id) |
| 93 IPC_STRUCT_TRAITS_MEMBER(name) | 93 IPC_STRUCT_TRAITS_MEMBER(name) |
| 94 IPC_STRUCT_TRAITS_MEMBER(tx_power) | |
| 95 IPC_STRUCT_TRAITS_MEMBER(rssi) | |
| 96 IPC_STRUCT_TRAITS_MEMBER(uuids) | 94 IPC_STRUCT_TRAITS_MEMBER(uuids) |
| 97 IPC_STRUCT_TRAITS_END() | 95 IPC_STRUCT_TRAITS_END() |
| 98 | 96 |
| 99 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebBluetoothError, | 97 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebBluetoothError, |
| 100 blink::WebBluetoothError::ENUM_MAX_VALUE) | 98 blink::WebBluetoothError::ENUM_MAX_VALUE) |
| 101 | 99 |
| 102 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothScanFilter) | 100 IPC_STRUCT_TRAITS_BEGIN(content::BluetoothScanFilter) |
| 103 IPC_STRUCT_TRAITS_MEMBER(services) | 101 IPC_STRUCT_TRAITS_MEMBER(services) |
| 104 IPC_STRUCT_TRAITS_MEMBER(name) | 102 IPC_STRUCT_TRAITS_MEMBER(name) |
| 105 IPC_STRUCT_TRAITS_MEMBER(namePrefix) | 103 IPC_STRUCT_TRAITS_MEMBER(namePrefix) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 int /* thread_id */, | 143 int /* thread_id */, |
| 146 int /* request_id */, | 144 int /* request_id */, |
| 147 int /* frame_routing_id */, | 145 int /* frame_routing_id */, |
| 148 std::string /* device_id */) | 146 std::string /* device_id */) |
| 149 | 147 |
| 150 // Disconnect from a device. | 148 // Disconnect from a device. |
| 151 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_GATTServerDisconnect, | 149 IPC_MESSAGE_CONTROL3(BluetoothHostMsg_GATTServerDisconnect, |
| 152 int /* thread_id */, | 150 int /* thread_id */, |
| 153 int /* frame_routing_id */, | 151 int /* frame_routing_id */, |
| 154 std::string /* device_id */) | 152 std::string /* device_id */) |
| OLD | NEW |