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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata.h

Issue 2703673002: [Merge-57] Add billing_address_id and has_converted to autofill_table (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 WebDataServiceConsumer* consumer) = 0; 102 WebDataServiceConsumer* consumer) = 0;
103 virtual WebDataServiceBase::Handle GetServerCreditCards( 103 virtual WebDataServiceBase::Handle GetServerCreditCards(
104 WebDataServiceConsumer* consumer) = 0; 104 WebDataServiceConsumer* consumer) = 0;
105 105
106 // Toggles the record for a server credit card between masked (only last 4 106 // Toggles the record for a server credit card between masked (only last 4
107 // digits) and full (all digits). 107 // digits) and full (all digits).
108 virtual void UnmaskServerCreditCard(const CreditCard& credit_card, 108 virtual void UnmaskServerCreditCard(const CreditCard& credit_card,
109 const base::string16& full_number) = 0; 109 const base::string16& full_number) = 0;
110 virtual void MaskServerCreditCard(const std::string& id) = 0; 110 virtual void MaskServerCreditCard(const std::string& id) = 0;
111 111
112 // Updates the use count and last use date for a server card (masked or not). 112 // Updates the metadata for a server card (masked or not).
113 virtual void UpdateServerCardUsageStats(const CreditCard& credit_card) = 0; 113 virtual void UpdateServerCardMetadata(const CreditCard& credit_card) = 0;
114 114
115 // Updates the use count and last use date for a server address. 115 // Updates the metadata for a server address.
116 virtual void UpdateServerAddressUsageStats(const AutofillProfile& profile) 116 virtual void UpdateServerAddressMetadata(const AutofillProfile& profile) = 0;
117 = 0;
118
119 // Updates the billing address for a server card (masked or not).
120 virtual void UpdateServerCardBillingAddress(const CreditCard& credit_card)
121 = 0;
122 117
123 // Removes Autofill records from the database. 118 // Removes Autofill records from the database.
124 virtual void RemoveAutofillDataModifiedBetween( 119 virtual void RemoveAutofillDataModifiedBetween(
125 const base::Time& delete_begin, const base::Time& delete_end) = 0; 120 const base::Time& delete_begin, const base::Time& delete_end) = 0;
126 121
127 // Removes origin URLs associated with Autofill profiles and credit cards from 122 // Removes origin URLs associated with Autofill profiles and credit cards from
128 // the database. 123 // the database.
129 virtual void RemoveOriginURLsModifiedBetween( 124 virtual void RemoveOriginURLsModifiedBetween(
130 const base::Time& delete_begin, const base::Time& delete_end) = 0; 125 const base::Time& delete_begin, const base::Time& delete_end) = 0;
131 }; 126 };
132 127
133 } // namespace autofill 128 } // namespace autofill
134 129
135 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ 130 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698