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

Unified Diff: device/bluetooth/bluetooth_adapter_android.h

Issue 1150833002: bluetooth: android: Initial Low Energy Discovery Sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-manifest-
Patch Set: addressed tedchoc's comments 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: 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;

Powered by Google App Engine
This is Rietveld 408576698