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

Unified Diff: components/cryptauth/foreground_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/data_with_timestamp.cc ('k') | components/cryptauth/foreground_eid_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/foreground_eid_generator.h
diff --git a/components/cryptauth/foreground_eid_generator.h b/components/cryptauth/foreground_eid_generator.h
index 8068078c5e05f9df29c4a3d19645ac0dc30ae9e6..ec68de89920d69d39c70f50dd68b9986cca55d33 100644
--- a/components/cryptauth/foreground_eid_generator.h
+++ b/components/cryptauth/foreground_eid_generator.h
@@ -12,6 +12,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/time/clock.h"
+#include "components/cryptauth/data_with_timestamp.h"
namespace cryptauth {
@@ -40,22 +41,6 @@ struct RemoteDevice;
// See go/proximity-auth-ble-advertising.
class ForegroundEidGenerator {
public:
- // Stores EID-related data and timestamps at which time this data becomes
- // active or inactive.
- struct DataWithTimestamp {
- DataWithTimestamp(const std::string& data,
- const int64_t start_timestamp_ms,
- const int64_t end_timestamp_ms);
- DataWithTimestamp(const DataWithTimestamp& other);
-
- bool ContainsTime(const int64_t timestamp_ms) const;
- std::string DataInHex() const;
-
- const std::string data;
- const int64_t start_timestamp_ms;
- const int64_t end_timestamp_ms;
- };
-
// Data for both a current and adjacent EID. The current EID *must* be
// supplied, but adjacent data may be null. Each EID consists of a 2-byte EID
// value paired with the timestamp at which time this value becomes active or
« no previous file with comments | « components/cryptauth/data_with_timestamp.cc ('k') | components/cryptauth/foreground_eid_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698