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; |