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

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: https://codereview.chromium.org/1231883004 fixs runtime error. Created 5 years, 5 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 e0625920bbe2f5bac98293ce40acfdc08a783468..52e257d8c1f40d80f71db4ed868361e1112720b1 100644
--- a/device/bluetooth/bluetooth_adapter_android.h
+++ b/device/bluetooth/bluetooth_adapter_android.h
@@ -21,6 +21,11 @@ namespace device {
// BluetoothAdapterAndroid, along with the Java class
// org.chromium.device.bluetooth.BluetoothAdapter, implement BluetoothAdapter.
//
+// The GATT Profile over Low Energy is supported, but not Classic Bluetooth at
+// this time. LE GATT support has been initially built out to support Web
+// Bluetooth, which does not need other Bluetooth features. There is no
+// technical reason they can not be supported should a need arrise.
+//
// BluetoothAdapterAndroid is reference counted, and owns the lifetime of the
// Java class BluetoothAdapter via j_adapter_.
class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterAndroid final
@@ -75,6 +80,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