| Index: content/common/bluetooth/bluetooth_messages.h
|
| diff --git a/content/common/bluetooth/bluetooth_messages.h b/content/common/bluetooth/bluetooth_messages.h
|
| index 3d5b1ce0f2b823d0c602d80e581ce2a417c07e2d..284f041c288c28703079bf927efecdf69c1ea5c7 100644
|
| --- a/content/common/bluetooth/bluetooth_messages.h
|
| +++ b/content/common/bluetooth/bluetooth_messages.h
|
| @@ -81,6 +81,7 @@
|
| #include "ipc/ipc_message_macros.h"
|
| #include "content/common/bluetooth/bluetooth_device.h"
|
| #include "content/common/bluetooth/bluetooth_error.h"
|
| +#include "content/common/bluetooth/bluetooth_scan_filter.h"
|
|
|
| #define IPC_MESSAGE_START BluetoothMsgStart
|
|
|
| @@ -103,6 +104,10 @@ IPC_STRUCT_TRAITS_END()
|
| IPC_ENUM_TRAITS_MAX_VALUE(content::BluetoothError,
|
| content::BluetoothError::ENUM_MAX_VALUE)
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(content::BluetoothScanFilter)
|
| +IPC_STRUCT_TRAITS_MEMBER(services)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| // Messages sent from the browser to the renderer.
|
|
|
| // Informs the renderer that the device request |request_id| succeeded.
|
| @@ -174,9 +179,11 @@ IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueError,
|
| // This work is deferred to simplify initial prototype patches.
|
| // The Bluetooth feature, and the BluetoothDispatcherHost are behind
|
| // the --enable-experimental-web-platform-features flag.
|
| -IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RequestDevice,
|
| +IPC_MESSAGE_CONTROL4(BluetoothHostMsg_RequestDevice,
|
| int /* thread_id */,
|
| - int /* request_id */)
|
| + int /* request_id */,
|
| + std::vector<content::BluetoothScanFilter>,
|
| + std::vector<device::BluetoothUUID> /* optional_services */)
|
|
|
| // Connects to a bluetooth device.
|
| IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT,
|
|
|