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

Unified Diff: components/cryptauth/background_eid_generator.h

Issue 2847233003: [EasyUnlock] Move DataWithTimestamp out of ForegroundEidGenerator so it can be shared. (Closed)
Patch Set: fixes Created 3 years, 8 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
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/background_eid_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/background_eid_generator.h
diff --git a/components/cryptauth/background_eid_generator.h b/components/cryptauth/background_eid_generator.h
index 506fa47cee005daad3db853fcadf3f51f402e41a..3fc067422b2a25a71eabdb73038fbc91bd6e9570 100644
--- a/components/cryptauth/background_eid_generator.h
+++ b/components/cryptauth/background_eid_generator.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/time/clock.h"
+#include "components/cryptauth/data_with_timestamp.h"
namespace cryptauth {
@@ -33,7 +34,7 @@ class BackgroundEidGenerator {
// Returns a list of the nearest EIDs from the current time. Note that the
// list of EIDs is sorted from earliest timestamp to latest.
- virtual std::vector<std::string> GenerateNearestEids(
+ virtual std::vector<DataWithTimestamp> GenerateNearestEids(
const std::vector<BeaconSeed>& beacon_seed) const;
private:
@@ -44,7 +45,7 @@ class BackgroundEidGenerator {
// Helper function to generate the EID for any |timestamp_ms|, properly
// calculating the start of the period. Returns nullptr if |timestamp_ms| is
// outside of range of |beacon_seeds|.
- std::unique_ptr<std::string> GenerateEid(
+ std::unique_ptr<DataWithTimestamp> GenerateEid(
int64_t timestamp_ms,
const std::vector<BeaconSeed>& beacon_seeds) const;
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/background_eid_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698