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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Schedules a task to add credit card to the web database. | 87 // Schedules a task to add credit card to the web database. |
88 virtual void AddCreditCard(const CreditCard& credit_card) = 0; | 88 virtual void AddCreditCard(const CreditCard& credit_card) = 0; |
89 | 89 |
90 // Schedules a task to update credit card in the web database. | 90 // Schedules a task to update credit card in the web database. |
91 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0; | 91 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0; |
92 | 92 |
93 // Schedules a task to remove a credit card from the web database. | 93 // Schedules a task to remove a credit card from the web database. |
94 // |guid| is identifier of the credit card to remove. | 94 // |guid| is identifier of the credit card to remove. |
95 virtual void RemoveCreditCard(const std::string& guid) = 0; | 95 virtual void RemoveCreditCard(const std::string& guid) = 0; |
96 | 96 |
| 97 // Schedules a task to add a full server credit card to the web database. |
| 98 virtual void AddFullServerCreditCard(const CreditCard& credit_card) = 0; |
| 99 |
97 // Initiates the request for local/server credit cards. The method | 100 // Initiates the request for local/server credit cards. The method |
98 // OnWebDataServiceRequestDone of |consumer| gets called when the request is | 101 // OnWebDataServiceRequestDone of |consumer| gets called when the request is |
99 // finished, with the credit cards included in the argument |result|. The | 102 // finished, with the credit cards included in the argument |result|. The |
100 // consumer owns the credit cards. | 103 // consumer owns the credit cards. |
101 virtual WebDataServiceBase::Handle GetCreditCards( | 104 virtual WebDataServiceBase::Handle GetCreditCards( |
102 WebDataServiceConsumer* consumer) = 0; | 105 WebDataServiceConsumer* consumer) = 0; |
103 virtual WebDataServiceBase::Handle GetServerCreditCards( | 106 virtual WebDataServiceBase::Handle GetServerCreditCards( |
104 WebDataServiceConsumer* consumer) = 0; | 107 WebDataServiceConsumer* consumer) = 0; |
105 | 108 |
106 // Toggles the record for a server credit card between masked (only last 4 | 109 // Toggles the record for a server credit card between masked (only last 4 |
(...skipping 14 matching lines...) Expand all Loading... |
121 | 124 |
122 // Removes origin URLs associated with Autofill profiles and credit cards from | 125 // Removes origin URLs associated with Autofill profiles and credit cards from |
123 // the database. | 126 // the database. |
124 virtual void RemoveOriginURLsModifiedBetween( | 127 virtual void RemoveOriginURLsModifiedBetween( |
125 const base::Time& delete_begin, const base::Time& delete_end) = 0; | 128 const base::Time& delete_begin, const base::Time& delete_end) = 0; |
126 }; | 129 }; |
127 | 130 |
128 } // namespace autofill | 131 } // namespace autofill |
129 | 132 |
130 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ | 133 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ |
OLD | NEW |