| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 
| 7 | 7 | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 | 9 | 
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 98                     const base::android::JavaParamRef<jobject>& caller); | 98                     const base::android::JavaParamRef<jobject>& caller); | 
| 99 | 99 | 
| 100   // Creates or updates device with advertised UUID information when a device is | 100   // Creates or updates device with advertised UUID information when a device is | 
| 101   // discovered during a scan. | 101   // discovered during a scan. | 
| 102   void CreateOrUpdateDeviceOnScan( | 102   void CreateOrUpdateDeviceOnScan( | 
| 103       JNIEnv* env, | 103       JNIEnv* env, | 
| 104       const base::android::JavaParamRef<jobject>& caller, | 104       const base::android::JavaParamRef<jobject>& caller, | 
| 105       const base::android::JavaParamRef<jstring>& address, | 105       const base::android::JavaParamRef<jstring>& address, | 
| 106       const base::android::JavaParamRef<jobject>& | 106       const base::android::JavaParamRef<jobject>& | 
| 107           bluetooth_device_wrapper,  // Java Type: bluetoothDeviceWrapper | 107           bluetooth_device_wrapper,  // Java Type: bluetoothDeviceWrapper | 
| 108       const base::android::JavaParamRef<jobject>& | 108       const base::android::JavaParamRef<jobjectArray>& | 
| 109           advertised_uuids);  // Java Type: List<ParcelUuid> | 109           advertised_uuids);  // Java Type: String[] | 
| 110 | 110 | 
| 111  protected: | 111  protected: | 
| 112   BluetoothAdapterAndroid(); | 112   BluetoothAdapterAndroid(); | 
| 113   ~BluetoothAdapterAndroid() override; | 113   ~BluetoothAdapterAndroid() override; | 
| 114 | 114 | 
| 115   // BluetoothAdapter: | 115   // BluetoothAdapter: | 
| 116   void AddDiscoverySession( | 116   void AddDiscoverySession( | 
| 117       BluetoothDiscoveryFilter* discovery_filter, | 117       BluetoothDiscoveryFilter* discovery_filter, | 
| 118       const base::Closure& callback, | 118       const base::Closure& callback, | 
| 119       const DiscoverySessionErrorCallback& error_callback) override; | 119       const DiscoverySessionErrorCallback& error_callback) override; | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 141   // Note: This should remain the last member so it'll be destroyed and | 141   // Note: This should remain the last member so it'll be destroyed and | 
| 142   // invalidate its weak pointers before any other members are destroyed. | 142   // invalidate its weak pointers before any other members are destroyed. | 
| 143   base::WeakPtrFactory<BluetoothAdapterAndroid> weak_ptr_factory_; | 143   base::WeakPtrFactory<BluetoothAdapterAndroid> weak_ptr_factory_; | 
| 144 | 144 | 
| 145   DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterAndroid); | 145   DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterAndroid); | 
| 146 }; | 146 }; | 
| 147 | 147 | 
| 148 }  // namespace device | 148 }  // namespace device | 
| 149 | 149 | 
| 150 #endif  // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 150 #endif  // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 
| OLD | NEW | 
|---|