| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ | 5 #ifndef CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ |
| 6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ | 6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Initiates the request for a vector of values which have been entered in | 31 // Initiates the request for a vector of values which have been entered in |
| 32 // form input fields named |name|. The method OnWebDataServiceRequestDone of | 32 // form input fields named |name|. The method OnWebDataServiceRequestDone of |
| 33 // |consumer| gets called back when the request is finished, with the vector | 33 // |consumer| gets called back when the request is finished, with the vector |
| 34 // included in the argument |result|. | 34 // included in the argument |result|. |
| 35 virtual WebDataServiceBase::Handle GetFormValuesForElementName( | 35 virtual WebDataServiceBase::Handle GetFormValuesForElementName( |
| 36 const string16& name, | 36 const string16& name, |
| 37 const string16& prefix, | 37 const string16& prefix, |
| 38 int limit, | 38 int limit, |
| 39 WebDataServiceConsumer* consumer) = 0; | 39 WebDataServiceConsumer* consumer) = 0; |
| 40 | 40 |
| 41 // Removes form elements recorded for Autocomplete from the database. |
| 42 virtual void RemoveFormElementsAddedBetween( |
| 43 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 44 |
| 41 virtual void RemoveExpiredFormElements() = 0; | 45 virtual void RemoveExpiredFormElements() = 0; |
| 42 virtual void RemoveFormValueForElementName(const string16& name, | 46 virtual void RemoveFormValueForElementName(const string16& name, |
| 43 const string16& value) = 0; | 47 const string16& value) = 0; |
| 44 | 48 |
| 45 // Schedules a task to add an Autofill profile to the web database. | 49 // Schedules a task to add an Autofill profile to the web database. |
| 46 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; | 50 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; |
| 47 | 51 |
| 48 // Schedules a task to update an Autofill profile in the web database. | 52 // Schedules a task to update an Autofill profile in the web database. |
| 49 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0; | 53 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0; |
| 50 | 54 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 66 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0; | 70 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0; |
| 67 | 71 |
| 68 // Schedules a task to remove a credit card from the web database. | 72 // Schedules a task to remove a credit card from the web database. |
| 69 // |guid| is identifer of the credit card to remove. | 73 // |guid| is identifer of the credit card to remove. |
| 70 virtual void RemoveCreditCard(const std::string& guid) = 0; | 74 virtual void RemoveCreditCard(const std::string& guid) = 0; |
| 71 | 75 |
| 72 // Initiates the request for all credit cards. The method | 76 // Initiates the request for all credit cards. The method |
| 73 // OnWebDataServiceRequestDone of |consumer| gets called when the request is | 77 // OnWebDataServiceRequestDone of |consumer| gets called when the request is |
| 74 // finished, with the credit cards included in the argument |result|. The | 78 // finished, with the credit cards included in the argument |result|. The |
| 75 // consumer owns the credit cards. | 79 // consumer owns the credit cards. |
| 76 virtual WebDataServiceBase::Handle | 80 virtual WebDataServiceBase::Handle GetCreditCards( |
| 77 GetCreditCards(WebDataServiceConsumer* consumer) = 0; | 81 WebDataServiceConsumer* consumer) = 0; |
| 82 |
| 83 // Removes Autofill records from the database. |
| 84 virtual void RemoveAutofillDataModifiedBetween( |
| 85 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 78 }; | 86 }; |
| 79 | 87 |
| 80 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ | 88 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ |
| OLD | NEW |