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

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

Issue 1159523002: bluetooth: Browser side partial implementation of getPrimaryService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/sevice/service Created 5 years, 7 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
Index: content/common/bluetooth/bluetooth_messages.h
diff --git a/content/common/bluetooth/bluetooth_messages.h b/content/common/bluetooth/bluetooth_messages.h
index ccef513dbcbd2f77a3f4433315fbbbbfcc1e529e..3103cd0639b2fea9073d1b88ccbbc9d2566481bb 100644
--- a/content/common/bluetooth/bluetooth_messages.h
+++ b/content/common/bluetooth/bluetooth_messages.h
@@ -129,6 +129,20 @@ IPC_MESSAGE_CONTROL3(BluetoothMsg_ConnectGATTError,
int /* request_id */,
content::BluetoothError /* result */)
+// Informs the renderer that primary service request |request_id| succeeded.
+IPC_MESSAGE_CONTROL5(BluetoothMsg_GetPrimaryServiceSuccess,
+ int /* thread_id */,
+ int /* request_id */,
+ std::string /* device_instance_id */,
+ std::string /* service_instance_id */,
+ std::string /* service_uuid */)
scheib 2015/05/28 23:09:16 service_uuid is redundant, as this response is bas
ortuno 2015/05/29 17:53:55 Done.
+
+// Informs the renderer that the primary service request |request_id| failed.
+IPC_MESSAGE_CONTROL3(BluetoothMsg_GetPrimaryServiceError,
+ int /* thread_id */,
+ int /* request_id */,
+ content::BluetoothError /* result */)
+
// Messages sent from the renderer to the browser.
// Requests a bluetooth device from the browser.
@@ -147,3 +161,10 @@ IPC_MESSAGE_CONTROL3(BluetoothHostMsg_ConnectGATT,
int /* thread_id */,
int /* request_id */,
std::string /* device_instance_id */)
+
+// Gets primary service from bluetooth device.
+IPC_MESSAGE_CONTROL4(BluetoothHostMsg_GetPrimaryService,
+ int /* thread_id */,
+ int /* request_id */,
+ std::string /* device_instance_id */,
+ std::string /* service_uuid */)

Powered by Google App Engine
This is Rietveld 408576698