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..b4df85b5420ea9d4295192de63090ff6c5c268a5 100644 |
| --- a/content/common/bluetooth/bluetooth_messages.h |
| +++ b/content/common/bluetooth/bluetooth_messages.h |
| @@ -183,6 +183,24 @@ 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 |
|
Jeffrey Yasskin
2015/09/12 02:36:05
This sentence is missing its
ortuno
2015/09/15 21:38:19
Done.
|
| +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 +243,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 */) |