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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h"
6
7 #include "dbus/object_path.h"
8 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
9 #include "device/bluetooth/bluez/bluetooth_device_bluez.h"
10 #include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h"
11
12 namespace bluez {
13
14 BluetoothGattAttributeValueDelegate::BluetoothGattAttributeValueDelegate(
15 BluetoothLocalGattServiceBlueZ* service)
16 : service_(service) {}
17
18 BluetoothGattAttributeValueDelegate::~BluetoothGattAttributeValueDelegate() {}
19
20 device::BluetoothDevice* BluetoothGattAttributeValueDelegate::GetDeviceWithPath(
21 const dbus::ObjectPath& object_path) {
22 return service_->GetAdapter()->GetDeviceWithPath(object_path);
23 }
24
25 } // namespace bluez
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698