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

Unified Diff: components/password_manager/core/browser/affiliation_utils.h

Issue 797983003: Implement AffiliationDatabase to cache affiliation information in a SQLite DB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aff_fetcher
Patch Set: Addressed comments from shess@. Created 5 years, 11 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/password_manager/core/browser/affiliation_utils.h
diff --git a/components/password_manager/core/browser/affiliation_utils.h b/components/password_manager/core/browser/affiliation_utils.h
index d87733fb788e5eaa264e6a62184e896767e67c96..ad5af3763af9c9eb9312841b6401537967297936 100644
--- a/components/password_manager/core/browser/affiliation_utils.h
+++ b/components/password_manager/core/browser/affiliation_utils.h
@@ -48,6 +48,7 @@
#include <vector>
#include "base/logging.h"
+#include "base/time/time.h"
#include "url/url_parse.h"
namespace password_manager {
@@ -135,6 +136,17 @@ class FacetURI {
// A collection of facets affiliated with each other, i.e. an equivalence class.
typedef std::vector<FacetURI> AffiliatedFacets;
+// A collection of facets affiliated with each other, i.e. an equivalence class,
+// plus a timestamp that indicates the last time the data was updated from an
+// authoritative source.
+struct AffiliatedFacetsWithUpdateTime {
+ AffiliatedFacetsWithUpdateTime();
+ ~AffiliatedFacetsWithUpdateTime();
+
+ AffiliatedFacets facets;
+ base::Time last_update_time;
+};
+
// Returns whether or not equivalence classes |a| and |b| are equal, that is,
// whether or not they consist of the same set of facets.
//

Powered by Google App Engine
This is Rietveld 408576698