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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h

Issue 554043003: cros: Create cryptohome keys for Easy sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix use-after-free Created 6 years, 3 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: 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_

Powered by Google App Engine
This is Rietveld 408576698