Chromium Code Reviews| Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h |
| diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4ab40e228ce53369105a49af1fa249b1ee6f8f48 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h |
| @@ -0,0 +1,34 @@ |
| +// 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 CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_TYPES_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_TYPES_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +namespace chromeos { |
| + |
| +extern const char kEasyUnlockKeyMetaNameBluetoothAddress[]; |
| +extern const char kEasyUnlockKeyMetaNamePsk[]; |
| +extern const char kEasyUnlockKeyMetaNamePubKey[]; |
| +extern const char kEasyUnlockKeyMetaNameChallenge[]; |
| +extern const char kEasyUnlockKeyMetaNameWrappedSecret[]; |
| + |
| +// Device data that is stored with cryptohome keys. |
| +struct EasyUnlockDeviceKeyData { |
| + EasyUnlockDeviceKeyData(); |
| + ~EasyUnlockDeviceKeyData(); |
| + |
|
tbarzic
2014/09/09 19:32:21
nit: can you add a short comments for these?
xiyuan
2014/09/09 20:25:31
Done.
|
| + std::string bluetooth_address; |
| + std::string public_key; |
| + std::string psk; |
| + std::string challenge; |
| + std::string wrapped_secret; |
| +}; |
| +typedef std::vector<EasyUnlockDeviceKeyData> EasyUnlockDeviceKeyDataList; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_TYPES_H_ |