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 COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_ |
6 #define CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ | 6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/browser/api/webdata/web_data_service_base.h" | 13 #include "components/webdata/common/web_data_service_base.h" |
14 | 14 |
15 class AutofillProfile; | 15 class AutofillProfile; |
16 class CreditCard; | 16 class CreditCard; |
17 class Profile; | 17 class Profile; |
18 class WebDataServiceConsumer; | 18 class WebDataServiceConsumer; |
19 struct FormFieldData; | 19 struct FormFieldData; |
20 | 20 |
21 // Pure virtual interface for retrieving Autofill data. API users | 21 // Pure virtual interface for retrieving Autofill data. API users |
22 // should use AutofillWebDataService. | 22 // should use AutofillWebDataService. |
23 class AutofillWebData { | 23 class AutofillWebData { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // finished, with the credit cards included in the argument |result|. The | 78 // finished, with the credit cards included in the argument |result|. The |
79 // consumer owns the credit cards. | 79 // consumer owns the credit cards. |
80 virtual WebDataServiceBase::Handle GetCreditCards( | 80 virtual WebDataServiceBase::Handle GetCreditCards( |
81 WebDataServiceConsumer* consumer) = 0; | 81 WebDataServiceConsumer* consumer) = 0; |
82 | 82 |
83 // Removes Autofill records from the database. | 83 // Removes Autofill records from the database. |
84 virtual void RemoveAutofillDataModifiedBetween( | 84 virtual void RemoveAutofillDataModifiedBetween( |
85 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 85 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
86 }; | 86 }; |
87 | 87 |
88 #endif // CHROME_BROWSER_API_WEBDATA_AUTOFILL_WEB_DATA_H_ | 88 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_WEBDATA_H_ |
OLD | NEW |