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

Unified Diff: components/payments/android/payment_method_manifest_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/payment_method_manifest_table.h
diff --git a/components/payments/android/payment_method_manifest_table.h b/components/payments/android/payment_method_manifest_table.h
index 0e1f5ef9c884e4fd19400c262d24fa2a525ab052..3655f5e3e282390671f0dba5e1984f3d620fcfa5 100644
--- a/components/payments/android/payment_method_manifest_table.h
+++ b/components/payments/android/payment_method_manifest_table.h
@@ -20,6 +20,9 @@ namespace payments {
// supported web app in this payment method manifest.
// Note that a payment method manifest might contain
// multiple supported web apps ids.
+//
+// expire_date The expire date in seconds from 1601-01-01 00:00:00
+// UTC.
// method_name The method name.
// web_app_id The supported web app id.
// (WebAppManifestSection.id).
@@ -38,6 +41,9 @@ class PaymentMethodManifestTable : public WebDatabaseTable {
bool IsSyncable() override;
bool MigrateToVersion(int version, bool* update_compatible_version) override;
+ // Remove expired data.
+ void RemoveExpiredData();
+
// Adds |payment_method|'s manifest. |web_app_ids| contains supported web apps
// ids.
bool AddManifest(const std::string& payment_method,

Powered by Google App Engine
This is Rietveld 408576698