| 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 COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Initiates the request for a vector of values which have been entered in | 34 // Initiates the request for a vector of values which have been entered in |
| 35 // form input fields named |name|. The method OnWebDataServiceRequestDone of | 35 // form input fields named |name|. The method OnWebDataServiceRequestDone of |
| 36 // |consumer| gets called back when the request is finished, with the vector | 36 // |consumer| gets called back when the request is finished, with the vector |
| 37 // included in the argument |result|. | 37 // included in the argument |result|. |
| 38 virtual WebDataServiceBase::Handle GetFormValuesForElementName( | 38 virtual WebDataServiceBase::Handle GetFormValuesForElementName( |
| 39 const base::string16& name, | 39 const base::string16& name, |
| 40 const base::string16& prefix, | 40 const base::string16& prefix, |
| 41 int limit, | 41 int limit, |
| 42 WebDataServiceConsumer* consumer) = 0; | 42 WebDataServiceConsumer* consumer) = 0; |
| 43 | 43 |
| 44 // Checks if there are any form elements in the database. |
| 45 virtual WebDataServiceBase::Handle HasFormElements( |
| 46 WebDataServiceConsumer* consumer) = 0; |
| 47 |
| 44 // Removes form elements recorded for Autocomplete from the database. | 48 // Removes form elements recorded for Autocomplete from the database. |
| 45 virtual void RemoveFormElementsAddedBetween( | 49 virtual void RemoveFormElementsAddedBetween( |
| 46 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 50 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 47 | 51 |
| 48 virtual void RemoveExpiredFormElements() = 0; | 52 virtual void RemoveExpiredFormElements() = 0; |
| 49 virtual void RemoveFormValueForElementName(const base::string16& name, | 53 virtual void RemoveFormValueForElementName(const base::string16& name, |
| 50 const base::string16& value) = 0; | 54 const base::string16& value) = 0; |
| 51 | 55 |
| 52 // Schedules a task to add an Autofill profile to the web database. | 56 // Schedules a task to add an Autofill profile to the web database. |
| 53 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; | 57 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 84 WebDataServiceConsumer* consumer) = 0; | 88 WebDataServiceConsumer* consumer) = 0; |
| 85 | 89 |
| 86 // Removes Autofill records from the database. | 90 // Removes Autofill records from the database. |
| 87 virtual void RemoveAutofillDataModifiedBetween( | 91 virtual void RemoveAutofillDataModifiedBetween( |
| 88 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 92 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 89 }; | 93 }; |
| 90 | 94 |
| 91 } // namespace autofill | 95 } // namespace autofill |
| 92 | 96 |
| 93 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 97 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
| OLD | NEW |