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

Unified Diff: content/common/bluetooth/bluetooth_messages.h

Issue 1172853004: Chromium side of RequestDeviceOptions implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add an end-namespace comment Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.cc ('k') | content/common/bluetooth/bluetooth_scan_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/bluetooth/bluetooth_messages.h
diff --git a/content/common/bluetooth/bluetooth_messages.h b/content/common/bluetooth/bluetooth_messages.h
index 007e7f3f8f05e9b7540d3a98d48e47a4040f79dd..6e570bec8a2cb62c8f89bf505aa357002708e117 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.
@@ -179,9 +184,11 @@ IPC_MESSAGE_CONTROL4(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,
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.cc ('k') | content/common/bluetooth/bluetooth_scan_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698