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

Unified Diff: chromeos/dbus/bluetooth_out_of_band_client.h

Issue 15020009: Bluetooth: remove legacy backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/bluetooth_node_client.cc ('k') | chromeos/dbus/bluetooth_out_of_band_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/bluetooth_out_of_band_client.h
diff --git a/chromeos/dbus/bluetooth_out_of_band_client.h b/chromeos/dbus/bluetooth_out_of_band_client.h
deleted file mode 100644
index e39cd61b20d7ae1dd00c40d3d700c3ae7f6c3193..0000000000000000000000000000000000000000
--- a/chromeos/dbus/bluetooth_out_of_band_client.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2012 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 CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_CLIENT_H_
-#define CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_CLIENT_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/dbus/dbus_client_implementation_type.h"
-#include "dbus/object_path.h"
-
-namespace dbus {
-class Bus;
-} // namespace dbus
-
-namespace device {
-struct BluetoothOutOfBandPairingData;
-} // namespace device
-
-namespace chromeos {
-
-// BluetoothOutOfBandClient is used to manage Out Of Band Pairing
-// Data for the local adapter and remote devices.
-class CHROMEOS_EXPORT BluetoothOutOfBandClient {
- public:
- virtual ~BluetoothOutOfBandClient();
-
- typedef base::Callback<void(
- const device::BluetoothOutOfBandPairingData& data,
- bool success)> DataCallback;
-
- typedef base::Callback<void(bool success)> SuccessCallback;
-
- // Reads the local Out Of Band Pairing Data and return it in |callback|.
- virtual void ReadLocalData(
- const dbus::ObjectPath& object_path,
- const DataCallback& callback) = 0;
-
- // Sets the Out Of Band Pairing Data for the device at |address| to |data|,
- // indicating success via |callback|. Makes a copy of |data|.
- virtual void AddRemoteData(
- const dbus::ObjectPath& object_path,
- const std::string& address,
- const device::BluetoothOutOfBandPairingData& data,
- const SuccessCallback& callback) = 0;
-
- // Clears the Out Of Band Pairing Data for the device at |address|, indicating
- // success via |callback|.
- virtual void RemoveRemoteData(
- const dbus::ObjectPath& object_path,
- const std::string& address,
- const SuccessCallback& callback) = 0;
-
- // Creates the instance.
- static BluetoothOutOfBandClient* Create(
- DBusClientImplementationType type,
- dbus::Bus* bus);
-
- protected:
- BluetoothOutOfBandClient();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BluetoothOutOfBandClient);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_CLIENT_H_
« no previous file with comments | « chromeos/dbus/bluetooth_node_client.cc ('k') | chromeos/dbus/bluetooth_out_of_band_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698