OLD | NEW |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 WebDataServiceConsumer* consumer) = 0; | 100 WebDataServiceConsumer* consumer) = 0; |
101 virtual WebDataServiceBase::Handle GetServerCreditCards( | 101 virtual WebDataServiceBase::Handle GetServerCreditCards( |
102 WebDataServiceConsumer* consumer) = 0; | 102 WebDataServiceConsumer* consumer) = 0; |
103 | 103 |
104 // Toggles the record for a server credit card between masked (only last 4 | 104 // Toggles the record for a server credit card between masked (only last 4 |
105 // digits) and full (all digits). | 105 // digits) and full (all digits). |
106 virtual void UnmaskServerCreditCard(const std::string& id, | 106 virtual void UnmaskServerCreditCard(const std::string& id, |
107 const base::string16& full_number) = 0; | 107 const base::string16& full_number) = 0; |
108 virtual void MaskServerCreditCard(const std::string& id) = 0; | 108 virtual void MaskServerCreditCard(const std::string& id) = 0; |
109 | 109 |
| 110 // Updates the use count and last use date for an unmasked server card. |
| 111 virtual void UpdateUnmaskedCardUsageStats(const CreditCard& credit_card) = 0; |
| 112 |
110 // Removes Autofill records from the database. | 113 // Removes Autofill records from the database. |
111 virtual void RemoveAutofillDataModifiedBetween( | 114 virtual void RemoveAutofillDataModifiedBetween( |
112 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 115 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
113 | 116 |
114 // Removes origin URLs associated with Autofill profiles and credit cards from | 117 // Removes origin URLs associated with Autofill profiles and credit cards from |
115 // the database. | 118 // the database. |
116 virtual void RemoveOriginURLsModifiedBetween( | 119 virtual void RemoveOriginURLsModifiedBetween( |
117 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 120 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
118 }; | 121 }; |
119 | 122 |
120 } // namespace autofill | 123 } // namespace autofill |
121 | 124 |
122 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 125 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
OLD | NEW |