| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 WebDataServiceConsumer* consumer) = 0; | 42 WebDataServiceConsumer* consumer) = 0; |
| 43 | 43 |
| 44 // Checks if there are any form elements in the database. | 44 // Checks if there are any form elements in the database. |
| 45 virtual WebDataServiceBase::Handle HasFormElements( | 45 virtual WebDataServiceBase::Handle HasFormElements( |
| 46 WebDataServiceConsumer* consumer) = 0; | 46 WebDataServiceConsumer* consumer) = 0; |
| 47 | 47 |
| 48 // Removes form elements recorded for Autocomplete from the database. | 48 // Removes form elements recorded for Autocomplete from the database. |
| 49 virtual void RemoveFormElementsAddedBetween( | 49 virtual void RemoveFormElementsAddedBetween( |
| 50 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 50 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 51 | 51 |
| 52 virtual void RemoveExpiredFormElements() = 0; | |
| 53 virtual void RemoveFormValueForElementName(const base::string16& name, | 52 virtual void RemoveFormValueForElementName(const base::string16& name, |
| 54 const base::string16& value) = 0; | 53 const base::string16& value) = 0; |
| 55 | 54 |
| 56 // Schedules a task to add an Autofill profile to the web database. | 55 // Schedules a task to add an Autofill profile to the web database. |
| 57 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; | 56 virtual void AddAutofillProfile(const AutofillProfile& profile) = 0; |
| 58 | 57 |
| 59 // Schedules a task to update an Autofill profile in the web database. | 58 // Schedules a task to update an Autofill profile in the web database. |
| 60 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0; | 59 virtual void UpdateAutofillProfile(const AutofillProfile& profile) = 0; |
| 61 | 60 |
| 62 // Schedules a task to remove an Autofill profile from the web database. | 61 // Schedules a task to remove an Autofill profile from the web database. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 93 | 92 |
| 94 // Removes origin URLs associated with Autofill profiles and credit cards from | 93 // Removes origin URLs associated with Autofill profiles and credit cards from |
| 95 // the database. | 94 // the database. |
| 96 virtual void RemoveOriginURLsModifiedBetween( | 95 virtual void RemoveOriginURLsModifiedBetween( |
| 97 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 96 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
| 98 }; | 97 }; |
| 99 | 98 |
| 100 } // namespace autofill | 99 } // namespace autofill |
| 101 | 100 |
| 102 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 101 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
| OLD | NEW |