| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // OnWebDataServiceRequestDone of |consumer| gets called when the request is | 96 // OnWebDataServiceRequestDone of |consumer| gets called when the request is |
| 97 // finished, with the credit cards included in the argument |result|. The | 97 // finished, with the credit cards included in the argument |result|. The |
| 98 // consumer owns the credit cards. | 98 // consumer owns the credit cards. |
| 99 virtual WebDataServiceBase::Handle GetCreditCards( | 99 virtual WebDataServiceBase::Handle GetCreditCards( |
| 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 CreditCard& credit_card, |
| 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. | 110 // Updates the use count and last use date for a server card (masked or not). |
| 111 virtual void UpdateUnmaskedCardUsageStats(const CreditCard& credit_card) = 0; | 111 virtual void UpdateServerCardUsageStats(const CreditCard& credit_card) = 0; |
| 112 |
| 113 // Updates the use count and last use date for a server address. |
| 114 virtual void UpdateServerAddressUsageStats(const AutofillProfile& profile) |
| 115 = 0; |
| 112 | 116 |
| 113 // Removes Autofill records from the database. | 117 // Removes Autofill records from the database. |
| 114 virtual void RemoveAutofillDataModifiedBetween( | 118 virtual void RemoveAutofillDataModifiedBetween( |
| 115 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 119 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 116 | 120 |
| 117 // Removes origin URLs associated with Autofill profiles and credit cards from | 121 // Removes origin URLs associated with Autofill profiles and credit cards from |
| 118 // the database. | 122 // the database. |
| 119 virtual void RemoveOriginURLsModifiedBetween( | 123 virtual void RemoveOriginURLsModifiedBetween( |
| 120 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 124 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 121 }; | 125 }; |
| 122 | 126 |
| 123 } // namespace autofill | 127 } // namespace autofill |
| 124 | 128 |
| 125 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 129 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
| OLD | NEW |