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

Unified Diff: device/bluetooth/bluetooth_device_android.h

Issue 1284073002: bluetooth: Add adapter to BluetoothDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-drop-callback-
Patch Set: Merge TOT Created 5 years, 3 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
« no previous file with comments | « device/bluetooth/bluetooth_device.cc ('k') | device/bluetooth/bluetooth_device_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_android.h
diff --git a/device/bluetooth/bluetooth_device_android.h b/device/bluetooth/bluetooth_device_android.h
index 90891b1f3ed730411458ecdc8a531d58bf971342..1e608f1df9f42cc6821bfc96e7edb5b0e1b04625 100644
--- a/device/bluetooth/bluetooth_device_android.h
+++ b/device/bluetooth/bluetooth_device_android.h
@@ -11,8 +11,11 @@
namespace device {
+class BluetoothAdapterAndroid;
+
// BluetoothDeviceAndroid along with the Java class
-// org.chromium.device.bluetooth.BluetoothDevice implement BluetoothDevice.
+// org.chromium.device.bluetooth.ChromeBluetoothDevice implement
+// BluetoothDevice.
class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceAndroid final
: public BluetoothDevice {
public:
@@ -25,6 +28,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceAndroid final
// TODO(scheib): Return a scoped_ptr<>, but then adapter will need to handle
// this correctly. http://crbug.com/506416
static BluetoothDeviceAndroid* Create(
+ BluetoothAdapterAndroid* adapter,
jobject bluetooth_device_wrapper); // Java Type: bluetoothDeviceWrapper
~BluetoothDeviceAndroid() override;
@@ -79,7 +83,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceAndroid final
const ConnectErrorCallback& error_callback) override;
protected:
- BluetoothDeviceAndroid();
+ BluetoothDeviceAndroid(BluetoothAdapterAndroid* adapter);
// BluetoothDevice:
std::string GetDeviceName() const override;
« no previous file with comments | « device/bluetooth/bluetooth_device.cc ('k') | device/bluetooth/bluetooth_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698