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

Unified Diff: components/cryptauth/remote_device.h

Issue 2859053003: [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: load beacon seed in RemoteDevice Created 3 years, 7 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: components/cryptauth/remote_device.h
diff --git a/components/cryptauth/remote_device.h b/components/cryptauth/remote_device.h
index b3f2b51eb18be35a8b220c863c74ad217a38b035..cd4085f8d21bbb38269e4c0414921db2f8bd4e9a 100644
--- a/components/cryptauth/remote_device.h
+++ b/components/cryptauth/remote_device.h
@@ -8,6 +8,8 @@
#include <string>
#include <vector>
+#include "components/cryptauth/proto/cryptauth_api.pb.h"
+
namespace cryptauth {
struct RemoteDevice {
@@ -19,6 +21,11 @@ struct RemoteDevice {
std::string persistent_symmetric_key;
std::string sign_in_challenge;
+ // Note: To save space, the BeaconSeeds may not necessarily be included in
+ // this object.
+ bool are_beacon_seeds_loaded;
+ std::vector<BeaconSeed> beacon_seeds;
+
RemoteDevice();
RemoteDevice(const std::string& user_id,
const std::string& name,
@@ -29,6 +36,9 @@ struct RemoteDevice {
RemoteDevice(const RemoteDevice& other);
~RemoteDevice();
+ // Loads a vector of BeaconSeeds for the RemoteDevice.
+ void LoadBeaconSeeds(const std::vector<BeaconSeed>& beacon_seeds);
+
// Returns a unique ID for the device.
std::string GetDeviceId() const;

Powered by Google App Engine
This is Rietveld 408576698