Index: public/platform/modules/bluetooth/WebBluetooth.h |
diff --git a/public/platform/modules/bluetooth/WebBluetooth.h b/public/platform/modules/bluetooth/WebBluetooth.h |
index d67b12999059b6c91de99e5bff059df29c5a5841..02c19502f60719a8fca6e2cfcddbe8e231345182 100644 |
--- a/public/platform/modules/bluetooth/WebBluetooth.h |
+++ b/public/platform/modules/bluetooth/WebBluetooth.h |
@@ -22,27 +22,27 @@ struct WebRequestDeviceOptions; |
// Success and failure callbacks for requestDevice. |
// WebBluetoothDevice and WebBluetoothError object ownership is transferred. |
-using WebBluetoothRequestDeviceCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothDevice>, WebPassOwnPtr<WebBluetoothError>>; |
+using WebBluetoothRequestDeviceCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothDevice>, const WebBluetoothError&>; |
// Success and failure callbacks for connectGATT. |
// WebBluetoothGATTRemoteServer and WebBluetoothError object ownership is transferred. |
-using WebBluetoothConnectGATTCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothGATTRemoteServer>, WebPassOwnPtr<WebBluetoothError>>; |
+using WebBluetoothConnectGATTCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothGATTRemoteServer>, const WebBluetoothError&>; |
// Success and failure callbacks for getPrimaryService. |
// WebBluetoothGATTService and WebBluetoothError object ownership is transferred. |
-using WebBluetoothGetPrimaryServiceCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothGATTService>, WebPassOwnPtr<WebBluetoothError>>; |
+using WebBluetoothGetPrimaryServiceCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothGATTService>, const WebBluetoothError&>; |
// Success and failure callbacks for getCharacteristic. |
// WebBluetoothCharacteristic and WebBluetoothError object ownership is transferred. |
-using WebBluetoothGetCharacteristicCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothGATTCharacteristic>, WebPassOwnPtr<WebBluetoothError>>; |
+using WebBluetoothGetCharacteristicCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothGATTCharacteristic>, const WebBluetoothError&>; |
// Success and failure callbacks for readValue. |
// WebVector and WebBluetoothError object ownership is transferred. |
-using WebBluetoothReadValueCallbacks = WebCallbacks<WebPassOwnPtr<WebVector<uint8_t>>, WebPassOwnPtr<WebBluetoothError>>; |
+using WebBluetoothReadValueCallbacks = WebCallbacks<const WebVector<uint8_t>&, const WebBluetoothError&>; |
// Success and failure callbacks for writeValue. |
// WebBluetoothError object ownership is transferred. |
-using WebBluetoothWriteValueCallbacks = WebCallbacks<void, WebPassOwnPtr<WebBluetoothError>>; |
+using WebBluetoothWriteValueCallbacks = WebCallbacks<void, const WebBluetoothError&>; |
class WebBluetooth { |
public: |