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

Unified Diff: chromeos/dbus/bluetooth_adapter_client.h

Issue 10546010: Implement support for the OOB Pairing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: chromeos/dbus/bluetooth_adapter_client.h
diff --git a/chromeos/dbus/bluetooth_adapter_client.h b/chromeos/dbus/bluetooth_adapter_client.h
index 6e59429b0a45ce07fcc013c31f95744be21916d7..9efc10d05dd3aef9ffa01d0517e96d0ace155fa9 100644
--- a/chromeos/dbus/bluetooth_adapter_client.h
+++ b/chromeos/dbus/bluetooth_adapter_client.h
@@ -14,6 +14,7 @@
#include "base/values.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/bluetooth_device_client.h"
+#include "chromeos/dbus/bluetooth_out_of_band_pairing_data.h"
#include "chromeos/dbus/bluetooth_property.h"
#include "chromeos/dbus/dbus_client_implementation_type.h"
#include "dbus/object_path.h"
@@ -227,6 +228,26 @@ class CHROMEOS_EXPORT BluetoothAdapterClient {
const dbus::ObjectPath& agent_path,
const AdapterCallback& callback) = 0;
+ // Read the local Out Of Band Pairing Data and return it in |callback|.
+ virtual void ReadLocalOutOfBandPairingData(
+ const dbus::ObjectPath& object_path,
+ const OutOfBandPairingDataCallback& callback) = 0;
+
+ // Set the Out Of Band Pairing Data for the device at |address| to |data|,
+ // indicating success via |callback|. Makes a copy of |data|.
+ virtual void AddRemoteOutOfBandPairingData(
+ const dbus::ObjectPath& object_path,
+ const std::string& address,
+ const OutOfBandPairingData& data,
+ const AdapterCallback& callback) = 0;
+
+ // Clear the Out Of Band Pairing Data for the device at |address|, indicating
+ // success via |callback|.
+ virtual void RemoveRemoteOutOfBandPairingData(
+ const dbus::ObjectPath& object_path,
+ const std::string& address,
+ const AdapterCallback& callback) = 0;
keybuk 2012/06/07 20:52:48 NAK, this should go in BluetoothOutOfBandDataClien
+
// Creates the instance.
static BluetoothAdapterClient* Create(DBusClientImplementationType type,
dbus::Bus* bus,
« no previous file with comments | « chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.cc ('k') | chromeos/dbus/bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698