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

Unified Diff: chromeos/dbus/bluetooth_out_of_band_pairing_data.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_out_of_band_pairing_data.h
diff --git a/chromeos/dbus/bluetooth_out_of_band_pairing_data.h b/chromeos/dbus/bluetooth_out_of_band_pairing_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..be8005738c089ef15e4bad6874f4210590e695ec
--- /dev/null
+++ b/chromeos/dbus/bluetooth_out_of_band_pairing_data.h
@@ -0,0 +1,29 @@
+// 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_PAIRING_DATA_H_
+#define CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
+#pragma once
+
+#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace chromeos {
+
+static const size_t kOutOfBandPairingDataSize = 16;
+
+struct OutOfBandPairingData {
+ // Simple Pairing Hash C
+ uint8_t hash[kOutOfBandPairingDataSize];
+
+ // Simple Pairing Randomizer R
+ uint8_t randomizer[kOutOfBandPairingDataSize];
+};
+
+typedef base::Callback<void(const OutOfBandPairingData& data,
+ bool success)> OutOfBandPairingDataCallback;
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698