Chromium Code Reviews| 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..8cbaa2cba39b077eceafa7c47aac57fbc5f0aebe 100644 |
| --- a/content/common/bluetooth/bluetooth_messages.h |
| +++ b/content/common/bluetooth/bluetooth_messages.h |
| @@ -183,6 +183,26 @@ 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. |
| + |
|
Jeffrey Yasskin
2015/09/25 23:03:19
Remove the extra blank line.
ortuno
2015/09/29 22:47:36
Done.
|
| +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 +245,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 */) |