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

Unified Diff: device/bluetooth/bluetooth_gatt_notify_session_chromeos.h

Issue 1367663002: Add Linux support for the Bluetooth API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_dbus
Patch Set: rebase 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
Index: device/bluetooth/bluetooth_gatt_notify_session_chromeos.h
diff --git a/device/bluetooth/bluetooth_gatt_notify_session_chromeos.h b/device/bluetooth/bluetooth_gatt_notify_session_chromeos.h
deleted file mode 100644
index ef6e8da4e9f7c86d6f20445f05ab7f8c3c9bed2e..0000000000000000000000000000000000000000
--- a/device/bluetooth/bluetooth_gatt_notify_session_chromeos.h
+++ /dev/null
@@ -1,77 +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_NOTIFY_SESSION_CHROMEOS_H_
-#define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_CHROMEOS_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "device/bluetooth/bluetooth_gatt_notify_session.h"
-#include "device/bluetooth/dbus/bluetooth_gatt_characteristic_client.h"
-
-namespace device {
-
-class BluetoothAdapter;
-
-} // namespace device
-
-namespace chromeos {
-
-class BluetoothRemoteGattCharacteristicChromeOS;
-
-// BluetoothGattNotifySessionChromeOS implements
-// BluetoothGattNotifySession for the Chrome OS platform.
-class BluetoothGattNotifySessionChromeOS
- : public device::BluetoothGattNotifySession,
- public bluez::BluetoothGattCharacteristicClient::Observer {
- public:
- ~BluetoothGattNotifySessionChromeOS() override;
-
- // BluetoothGattNotifySession overrides.
- std::string GetCharacteristicIdentifier() const override;
- bool IsActive() override;
- void Stop(const base::Closure& callback) override;
-
- private:
- friend class BluetoothRemoteGattCharacteristicChromeOS;
-
- explicit BluetoothGattNotifySessionChromeOS(
- scoped_refptr<device::BluetoothAdapter> adapter,
- const std::string& device_address,
- const std::string& service_identifier,
- const std::string& characteristic_identifier,
- const dbus::ObjectPath& characteristic_path);
-
- // bluez::BluetoothGattCharacteristicClient::Observer overrides.
- void GattCharacteristicRemoved(const dbus::ObjectPath& object_path) override;
- void GattCharacteristicPropertyChanged(
- const dbus::ObjectPath& object_path,
- const std::string& property_name) override;
-
- // True, if this session is currently active.
- bool active_;
-
- // The Bluetooth adapter that this session is associated with.
- scoped_refptr<device::BluetoothAdapter> adapter_;
-
- // The Bluetooth address of the device hosting the characteristic.
- std::string device_address_;
-
- // The GATT service that the characteristic belongs to.
- std::string service_id_;
-
- // Identifier of the associated characteristic.
- std::string characteristic_id_;
-
- // D-Bus object path of the associated characteristic. This is used to filter
- // observer events.
- dbus::ObjectPath object_path_;
-
- DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionChromeOS);
-};
-
-} // namespace chromeos
-
-#endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_CHROMEOS_H_
« no previous file with comments | « device/bluetooth/bluetooth_gatt_notify_session_bluez.cc ('k') | device/bluetooth/bluetooth_gatt_notify_session_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698