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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc

Issue 1979163002: Add DBus plumbing and tests for sending devices with ATT read/writes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devices
Patch Set: gyp fix Created 4 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/dbus/bluetooth_gatt_attribute_value_delegate.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc b/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..238dc6e4fee199e4ae496f0c38813699ed81b02a
--- /dev/null
+++ b/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h"
+
+#include "dbus/object_path.h"
+#include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
+#include "device/bluetooth/bluez/bluetooth_device_bluez.h"
+#include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h"
+
+namespace bluez {
+
+BluetoothGattAttributeValueDelegate::BluetoothGattAttributeValueDelegate(
+ BluetoothLocalGattServiceBlueZ* service)
+ : service_(service) {}
+
+BluetoothGattAttributeValueDelegate::~BluetoothGattAttributeValueDelegate() {}
+
+device::BluetoothDevice* BluetoothGattAttributeValueDelegate::GetDeviceWithPath(
+ const dbus::ObjectPath& object_path) {
+ return service_->GetAdapter()->GetDeviceWithPath(object_path);
+}
+
+} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698