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

Unified Diff: device/bluetooth/bluetooth_gatt_connection_bluez.h

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/bluetooth_gatt_connection_bluez.h
diff --git a/device/bluetooth/bluetooth_gatt_connection_bluez.h b/device/bluetooth/bluetooth_gatt_connection_bluez.h
deleted file mode 100644
index 1ea0a324f0d82ea6b907e250cf0365cd5b428a8e..0000000000000000000000000000000000000000
--- a/device/bluetooth/bluetooth_gatt_connection_bluez.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_
-#define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "dbus/object_path.h"
-#include "device/bluetooth/bluetooth_gatt_connection.h"
-#include "device/bluetooth/dbus/bluetooth_device_client.h"
-
-namespace device {
-
-class BluetoothAdapter;
-
-} // namespace device
-
-namespace bluez {
-
-// BluetoothGattConnectionBlueZ implements BluetoothGattConnection for
-// platforms that use BlueZ.
-class BluetoothGattConnectionBlueZ
- : public device::BluetoothGattConnection,
- public bluez::BluetoothDeviceClient::Observer {
- public:
- explicit BluetoothGattConnectionBlueZ(
- scoped_refptr<device::BluetoothAdapter> adapter,
- const std::string& device_address,
- const dbus::ObjectPath& object_path);
- ~BluetoothGattConnectionBlueZ() override;
-
- // BluetoothGattConnection overrides.
- bool IsConnected() override;
- void Disconnect() override;
-
- private:
- // bluez::Bluetooth$1Client::Observer overrides.
- void DeviceRemoved(const dbus::ObjectPath& object_path) override;
- void DevicePropertyChanged(const dbus::ObjectPath& object_path,
- const std::string& property_name) override;
-
- // True, if the connection is currently active.
- bool connected_;
-
- // D-Bus object path of the underlying device. This is used to filter observer
- // events.
- dbus::ObjectPath object_path_;
-
- DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionBlueZ);
-};
-
-} // namespace bluez
-
-#endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_
« no previous file with comments | « device/bluetooth/bluetooth_gatt_characteristic_unittest.cc ('k') | device/bluetooth/bluetooth_gatt_connection_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698