Index: device/bluetooth/bluetooth_adapter_android.h |
diff --git a/device/bluetooth/bluetooth_adapter_android.h b/device/bluetooth/bluetooth_adapter_android.h |
index d458bb5659cc2a42c1de519da1bc02db69dc1531..dec75b162454d6890073c9d87dddae702753dc3d 100644 |
--- a/device/bluetooth/bluetooth_adapter_android.h |
+++ b/device/bluetooth/bluetooth_adapter_android.h |
@@ -31,7 +31,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterAndroid final |
static bool RegisterJNI(JNIEnv* env); |
// True if this app has android permissions necessary for Bluetooth. |
- bool HasBluetoothPermission() const; |
+ bool HasBluetoothCapability() const; |
// BluetoothAdapter: |
std::string GetAddress() const override; |
@@ -69,6 +69,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterAndroid final |
const CreateAdvertisementCallback& callback, |
const CreateAdvertisementErrorCallback& error_callback) override; |
+ // Handles a scan error event by invalidating all discovery sessions. |
+ void OnScanFailed(JNIEnv* env, jobject obj); |
+ |
protected: |
BluetoothAdapterAndroid(); |
~BluetoothAdapterAndroid() override; |