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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
7 #pragma once
8
9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h"
11
12 namespace chromeos {
13
14 static const size_t kOutOfBandPairingDataSize = 16;
15
16 struct OutOfBandPairingData {
17 // Simple Pairing Hash C
18 uint8_t hash[kOutOfBandPairingDataSize];
19
20 // Simple Pairing Randomizer R
21 uint8_t randomizer[kOutOfBandPairingDataSize];
22 };
23
24 typedef base::Callback<void(const OutOfBandPairingData& data,
25 bool success)> OutOfBandPairingDataCallback;
26
27 } // namespace chromeos
28
29 #endif // CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698