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

Unified Diff: components/payments/android/web_app_manifest_section_table.h

Issue 2845753003: [Payments] Set cached manifest expiration date (Closed)
Patch Set: improve comments 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
Index: components/payments/android/web_app_manifest_section_table.h
diff --git a/components/payments/android/web_app_manifest_section_table.h b/components/payments/android/web_app_manifest_section_table.h
index 12322e715c4dbef93dc19f46abfd603eb1562420..f39922d2a7306c3e92e8fe84c3824bea3925f194 100644
--- a/components/payments/android/web_app_manifest_section_table.h
+++ b/components/payments/android/web_app_manifest_section_table.h
@@ -21,6 +21,8 @@ namespace payments {
// web_app_manifest_section The table stores the contents in
// WebAppManifestSection.
//
+// expire_date The data expire date in seconds from 1601-01-01
+// 00:00:00 UTC.
// id The package name of the app.
// min_version Minimum version number of the app.
// fingerprints The result of SHA256(signing certificate bytes) for
@@ -40,6 +42,9 @@ class WebAppManifestSectionTable : public WebDatabaseTable {
bool IsSyncable() override;
bool MigrateToVersion(int version, bool* update_compatible_version) override;
+ // Remove expired data.
+ void RemoveExpiredData();
+
// Adds the web app |manifest|. Note that the previous web app manifest will
// be deleted.
bool AddWebAppManifest(

Powered by Google App Engine
This is Rietveld 408576698