Chromium Code Reviews| 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_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 void AddCreditCard(const CreditCard& credit_card); | 145 void AddCreditCard(const CreditCard& credit_card); |
| 146 | 146 |
| 147 // Updates |credit_card| which already exists in the web database. This | 147 // Updates |credit_card| which already exists in the web database. This |
| 148 // can only be used on local credit cards. | 148 // can only be used on local credit cards. |
| 149 virtual void UpdateCreditCard(const CreditCard& credit_card); | 149 virtual void UpdateCreditCard(const CreditCard& credit_card); |
| 150 | 150 |
| 151 // Update a server card. Only the full number and masked/unmasked | 151 // Update a server card. Only the full number and masked/unmasked |
| 152 // status can be changed. Looks up the card by server ID. | 152 // status can be changed. Looks up the card by server ID. |
| 153 virtual void UpdateServerCreditCard(const CreditCard& credit_card); | 153 virtual void UpdateServerCreditCard(const CreditCard& credit_card); |
| 154 | 154 |
| 155 // Updates the billing address for the server |credit_card|. Looks up the card | 155 // Updates the metadata for the server |credit_card|. Looks up the card by |
|
please use gerrit instead
2017/01/13 14:31:09
specify exactly the data that's going to be update
sebsg
2017/01/13 20:23:58
Done.
| |
| 156 // by GUID. | 156 // server_id. |
| 157 void UpdateServerCardBillingAddress(const CreditCard& credit_card); | 157 void UpdateServerCardMetadata(const CreditCard& credit_card); |
| 158 | 158 |
| 159 // Resets the card for |guid| to the masked state. | 159 // Resets the card for |guid| to the masked state. |
| 160 void ResetFullServerCard(const std::string& guid); | 160 void ResetFullServerCard(const std::string& guid); |
| 161 | 161 |
| 162 // Resets all unmasked cards to the masked state. | 162 // Resets all unmasked cards to the masked state. |
| 163 void ResetFullServerCards(); | 163 void ResetFullServerCards(); |
| 164 | 164 |
| 165 // Deletes all server profiles and cards (both masked and unmasked). | 165 // Deletes all server profiles and cards (both masked and unmasked). |
| 166 void ClearAllServerData(); | 166 void ClearAllServerData(); |
| 167 | 167 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 546 // validation rules. | 546 // validation rules. |
| 547 scoped_refptr<net::URLRequestContextGetter> context_getter_; | 547 scoped_refptr<net::URLRequestContextGetter> context_getter_; |
| 548 #endif | 548 #endif |
| 549 | 549 |
| 550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 551 }; | 551 }; |
| 552 | 552 |
| 553 } // namespace autofill | 553 } // namespace autofill |
| 554 | 554 |
| 555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |