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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_descriptor_chromeos.h

Issue 1415573014: Reland "Add Linux support for the Bluetooth API" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix. Created 5 years, 1 month 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_remote_gatt_descriptor_chromeos.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_chromeos.h b/device/bluetooth/bluetooth_remote_gatt_descriptor_chromeos.h
deleted file mode 100644
index b32dd87a17d652c82cce8b4f858c1817c8b34ab0..0000000000000000000000000000000000000000
--- a/device/bluetooth/bluetooth_remote_gatt_descriptor_chromeos.h
+++ /dev/null
@@ -1,78 +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_REMOTE_GATT_DESCRIPTOR_CHROMEOS_H_
-#define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_CHROMEOS_H_
-
-#include <string>
-#include <vector>
-
-#include "base/memory/weak_ptr.h"
-#include "dbus/object_path.h"
-#include "device/bluetooth/bluetooth_gatt_descriptor.h"
-#include "device/bluetooth/bluetooth_uuid.h"
-
-namespace device {
-
-class BluetoothGattCharacteristic;
-
-} // namespace device
-
-namespace chromeos {
-
-class BluetoothRemoteGattCharacteristicChromeOS;
-
-// The BluetoothRemoteGattDescriptorChromeOS class implements
-// BluetoothGattDescriptor for remote GATT characteristic descriptors on the
-// Chrome OS platform.
-class BluetoothRemoteGattDescriptorChromeOS
- : public device::BluetoothGattDescriptor {
- public:
- // device::BluetoothGattDescriptor overrides.
- std::string GetIdentifier() const override;
- device::BluetoothUUID GetUUID() const override;
- bool IsLocal() const override;
- const std::vector<uint8>& GetValue() const override;
- device::BluetoothGattCharacteristic* GetCharacteristic() const override;
- device::BluetoothGattCharacteristic::Permissions GetPermissions()
- const override;
- void ReadRemoteDescriptor(const ValueCallback& callback,
- const ErrorCallback& error_callback) override;
- void WriteRemoteDescriptor(const std::vector<uint8>& new_value,
- const base::Closure& callback,
- const ErrorCallback& error_callback) override;
-
- // Object path of the underlying D-Bus characteristic.
- const dbus::ObjectPath& object_path() const { return object_path_; }
-
- private:
- friend class BluetoothRemoteGattCharacteristicChromeOS;
-
- BluetoothRemoteGattDescriptorChromeOS(
- BluetoothRemoteGattCharacteristicChromeOS* characteristic,
- const dbus::ObjectPath& object_path);
- ~BluetoothRemoteGattDescriptorChromeOS() override;
-
- // Called by dbus:: on unsuccessful completion of a request to read or write
- // the descriptor value.
- void OnError(const ErrorCallback& error_callback,
- const std::string& error_name,
- const std::string& error_message);
-
- // Object path of the D-Bus descriptor object.
- dbus::ObjectPath object_path_;
-
- // The GATT characteristic this descriptor belongs to.
- BluetoothRemoteGattCharacteristicChromeOS* characteristic_;
-
- // Note: This should remain the last member so it'll be destroyed and
- // invalidate its weak pointers before any other members are destroyed.
- base::WeakPtrFactory<BluetoothRemoteGattDescriptorChromeOS> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattDescriptorChromeOS);
-};
-
-} // namespace chromeos
-
-#endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698