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

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

Issue 1334763002: bluetooth: Subscribe to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-origin
Patch Set: Fix global interface test Created 5 years, 2 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/browser/bluetooth/bluetooth_metrics.cc ('k') | content/renderer/bluetooth/bluetooth_dispatcher.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 6e05cb4aa7400ac1b0aa5d0c2ca8caeb120a1136..e0e8b543279fa041811c758e270286d1e701015c 100644
--- a/content/common/bluetooth/bluetooth_messages.h
+++ b/content/common/bluetooth/bluetooth_messages.h
@@ -183,6 +183,25 @@ IPC_MESSAGE_CONTROL3(BluetoothMsg_WriteCharacteristicValueError,
int /* request_id */,
blink::WebBluetoothError /* result */)
+// Informs the renderer that the user has successfully subscribed to
+// notifications from the device.
+IPC_MESSAGE_CONTROL2(BluetoothMsg_StartNotificationsSuccess,
+ int /* thread_id */,
+ int /* request_id */)
+
+// Informs the renderer that an error ocurred when trying to subscribe to
+// notifications from the device.
+IPC_MESSAGE_CONTROL3(BluetoothMsg_StartNotificationsError,
+ int /* thread_id */,
+ int /* request_id */,
+ blink::WebBluetoothError)
+
+// Informs the renderer that the user has successfully unsubscribed from
+// notifications.
+IPC_MESSAGE_CONTROL2(BluetoothMsg_StopNotificationsSuccess,
+ int /* thread_id */,
+ int /* request_id */)
+
// Messages sent from the renderer to the browser.
// Requests a bluetooth device from the browser.
@@ -225,3 +244,15 @@ IPC_MESSAGE_CONTROL4(BluetoothHostMsg_WriteValue,
int /* request_id */,
std::string /* characteristic_instance_id */,
std::vector<uint8_t> /* value */)
+
+// Subscribes to notifications from a device's characteristic.
+IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StartNotifications,
+ int /* thread_id */,
+ int /* request_id */,
+ std::string /* characteristic_instance_id */)
+
+// Unsubscribes from notifications from a device's characteristic.
+IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications,
+ int /* thread_id */,
+ int /* request_id */,
+ std::string /* characteristic_instance_id */)
« no previous file with comments | « content/browser/bluetooth/bluetooth_metrics.cc ('k') | content/renderer/bluetooth/bluetooth_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698