Index: device/bluetooth/bluetooth_remote_gatt_service_android.h |
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_android.h b/device/bluetooth/bluetooth_remote_gatt_service_android.h |
index 6e0e7022c836a2910e12969a727bb8a548e4cd91..5bc9e3d930a2ced7c0cd5b9955bc777bec81c2a3 100644 |
--- a/device/bluetooth/bluetooth_remote_gatt_service_android.h |
+++ b/device/bluetooth/bluetooth_remote_gatt_service_android.h |
@@ -41,6 +41,9 @@ class BluetoothRemoteGattServiceAndroid : public device::BluetoothGattService { |
// BluetoothRemoteGattServiceWrapper |
std::string instanceId); |
+ // Register C++ methods exposed to Java using JNI. |
+ static bool RegisterJNI(JNIEnv* env); |
+ |
// device::BluetoothGattService overrides. |
std::string GetIdentifier() const override; |
device::BluetoothUUID GetUUID() const override; |
@@ -69,6 +72,9 @@ class BluetoothRemoteGattServiceAndroid : public device::BluetoothGattService { |
std::string instanceId); |
~BluetoothRemoteGattServiceAndroid() override; |
+ // Java object org.chromium.device.bluetooth.ChromeBluetoothRemoteGattService. |
+ base::android::ScopedJavaGlobalRef<jobject> j_service_; |
+ |
// The adapter associated with this service. It's ok to store a raw pointer |
// here since |adapter_| indirectly owns this instance. |
BluetoothAdapterAndroid* adapter_; |