Index: device/bluetooth/bluetooth_local_gatt_service.h |
diff --git a/device/bluetooth/bluetooth_local_gatt_service.h b/device/bluetooth/bluetooth_local_gatt_service.h |
index 30c1131e869647de255f9cf2e3d34f3174cedaa1..8ab772ab3470675d288653b96c8598f855f8ecac 100644 |
--- a/device/bluetooth/bluetooth_local_gatt_service.h |
+++ b/device/bluetooth/bluetooth_local_gatt_service.h |
@@ -44,7 +44,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLocalGattService |
class Delegate { |
public: |
// Callbacks used for communicating GATT request responses. |
- typedef base::Callback<void(const std::vector<uint8_t>)> ValueCallback; |
+ typedef base::Callback<void(const std::vector<uint8_t>&)> ValueCallback; |
typedef base::Closure ErrorCallback; |
// Called when a remote device in the central role requests to read the |
@@ -85,7 +85,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLocalGattService |
const BluetoothLocalGattCharacteristic* characteristic, |
const std::vector<uint8_t>& value, |
int offset, |
- const ValueCallback& callback, |
+ const base::Closure& callback, |
const ErrorCallback& error_callback) = 0; |
// Called when a remote device in the central role requests to read the |
@@ -126,7 +126,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLocalGattService |
const BluetoothLocalGattDescriptor* descriptor, |
const std::vector<uint8_t>& value, |
int offset, |
- const ValueCallback& callback, |
+ const base::Closure& callback, |
const ErrorCallback& error_callback) = 0; |
}; |