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

Unified Diff: device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.cc

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/bluez/bluetooth_gatt_descriptor_bluez.cc
diff --git a/device/bluetooth/dbus/dbus_bluez_manager_wrapper_stub_linux.cc b/device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.cc
similarity index 32%
copy from device/bluetooth/dbus/dbus_bluez_manager_wrapper_stub_linux.cc
copy to device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.cc
index 18c2bfe676c2892cad9046c2e02bdc537158b37f..c1b909a4d16384c08680f6701122b743ae734957 100644
--- a/device/bluetooth/dbus/dbus_bluez_manager_wrapper_stub_linux.cc
+++ b/device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.cc
@@ -2,16 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "device/bluetooth/dbus/dbus_bluez_manager_wrapper_linux.h"
+#include "device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.h"
+
+#include "device/bluetooth/bluez/bluetooth_gatt_characteristic_bluez.h"
namespace bluez {
-// Stub implementation for targets that don't use DBus.
-// static
-void DBusBluezManagerWrapperLinux::Initialize() {}
+BluetoothGattDescriptorBlueZ::BluetoothGattDescriptorBlueZ(
+ const dbus::ObjectPath& object_path)
+ : object_path_(object_path) {}
+
+BluetoothGattDescriptorBlueZ::~BluetoothGattDescriptorBlueZ() {}
-// Stub implementation for targets that don't use DBus.
-// static
-void DBusBluezManagerWrapperLinux::Shutdown() {}
+std::string BluetoothGattDescriptorBlueZ::GetIdentifier() const {
+ return object_path_.value();
+}
} // namespace bluez
« no previous file with comments | « device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.h ('k') | device/bluetooth/bluez/bluetooth_gatt_notify_session_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698