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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata.h

Issue 1042353003: Create syncable metadata table for Wallet credit cards and addresses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: docs Created 5 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/autofill/core/browser/webdata/autofill_webdata.h
diff --git a/components/autofill/core/browser/webdata/autofill_webdata.h b/components/autofill/core/browser/webdata/autofill_webdata.h
index 2cf04ef2902cb22984d01e15985b7104c481e4a3..e2c121ebebd71ef63feb3ac83f8fe5d7aa06b114 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata.h
+++ b/components/autofill/core/browser/webdata/autofill_webdata.h
@@ -103,12 +103,16 @@ class AutofillWebData {
// Toggles the record for a server credit card between masked (only last 4
// digits) and full (all digits).
- virtual void UnmaskServerCreditCard(const std::string& id,
+ virtual void UnmaskServerCreditCard(const CreditCard& credit_card,
const base::string16& full_number) = 0;
virtual void MaskServerCreditCard(const std::string& id) = 0;
- // Updates the use count and last use date for an unmasked server card.
- virtual void UpdateUnmaskedCardUsageStats(const CreditCard& credit_card) = 0;
+ // Updates the use count and last use date for a server card (masked or not).
+ virtual void UpdateServerCardUsageStats(const CreditCard& credit_card) = 0;
+
+ // Updates the use count and last use date for a server address.
+ virtual void UpdateServerAddressUsageStats(const AutofillProfile& profile)
+ = 0;
// Removes Autofill records from the database.
virtual void RemoveAutofillDataModifiedBetween(

Powered by Google App Engine
This is Rietveld 408576698