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

Unified Diff: components/cryptauth/remote_device.h

Issue 2859053003: [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: fixes 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..7a71f19230d9e0d51f10d88f9aabfdba8403cbc1 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 has_fetched_remote_beacon_seeds;
Ryan Hansberry 2017/05/09 02:32:19 I'm confused -- I thought you were arguing against
Tim Song 2017/05/10 21:58:08 Sorry, this was from when I attempted to implement
+ std::vector<BeaconSeed> beacon_seeds;
+
RemoteDevice();
RemoteDevice(const std::string& user_id,
const std::string& name,
@@ -29,6 +36,10 @@ struct RemoteDevice {
RemoteDevice(const RemoteDevice& other);
~RemoteDevice();
+ // Sets the BeaconSeeds for the remote device. Note that due to space
+ // concerns, we may not always set the BeaconSeeds.
+ void SetBeaconSeeds(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