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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Schedules a task to remove an Autofill profile from the web database. | 68 // Schedules a task to remove an Autofill profile from the web database. |
69 // |guid| is the identifer of the profile to remove. | 69 // |guid| is the identifer of the profile to remove. |
70 virtual void RemoveAutofillProfile(const std::string& guid) = 0; | 70 virtual void RemoveAutofillProfile(const std::string& guid) = 0; |
71 | 71 |
72 // Initiates the request for local/server Autofill profiles. The method | 72 // Initiates the request for local/server Autofill profiles. The method |
73 // OnWebDataServiceRequestDone of |consumer| gets called when the request is | 73 // OnWebDataServiceRequestDone of |consumer| gets called when the request is |
74 // finished, with the profiles included in the argument |result|. The | 74 // finished, with the profiles included in the argument |result|. The |
75 // consumer owns the profiles. | 75 // consumer owns the profiles. |
76 virtual WebDataServiceBase::Handle GetAutofillProfiles( | 76 virtual WebDataServiceBase::Handle GetAutofillProfiles( |
77 WebDataServiceConsumer* consumer) = 0; | 77 WebDataServiceConsumer* consumer) = 0; |
78 virtual WebDataServiceBase::Handle GetAutofillServerProfiles( | 78 virtual WebDataServiceBase::Handle GetServerProfiles( |
79 WebDataServiceConsumer* consumer) = 0; | 79 WebDataServiceConsumer* consumer) = 0; |
80 | 80 |
81 // Schedules a task to update autofill entries in the web database. | 81 // Schedules a task to update autofill entries in the web database. |
82 virtual void UpdateAutofillEntries( | 82 virtual void UpdateAutofillEntries( |
83 const std::vector<AutofillEntry>& autofill_entries) = 0; | 83 const std::vector<AutofillEntry>& autofill_entries) = 0; |
84 | 84 |
85 // Schedules a task to add credit card to the web database. | 85 // Schedules a task to add credit card to the web database. |
86 virtual void AddCreditCard(const CreditCard& credit_card) = 0; | 86 virtual void AddCreditCard(const CreditCard& credit_card) = 0; |
87 | 87 |
88 // Schedules a task to update credit card in the web database. | 88 // Schedules a task to update credit card in the web database. |
(...skipping 27 matching lines...) Expand all Loading... |
116 | 116 |
117 // Removes origin URLs associated with Autofill profiles and credit cards from | 117 // Removes origin URLs associated with Autofill profiles and credit cards from |
118 // the database. | 118 // the database. |
119 virtual void RemoveOriginURLsModifiedBetween( | 119 virtual void RemoveOriginURLsModifiedBetween( |
120 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 120 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace autofill | 123 } // namespace autofill |
124 | 124 |
125 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 125 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
OLD | NEW |