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 <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 AutofillProfile* GetProfileByGUID(const std::string& guid); | 131 AutofillProfile* GetProfileByGUID(const std::string& guid); |
132 | 132 |
133 // Adds |credit_card| to the web database. | 133 // Adds |credit_card| to the web database. |
134 void AddCreditCard(const CreditCard& credit_card); | 134 void AddCreditCard(const CreditCard& credit_card); |
135 | 135 |
136 // Updates |credit_card| which already exists in the web database. This | 136 // Updates |credit_card| which already exists in the web database. This |
137 // can only be used on local credit cards. | 137 // can only be used on local credit cards. |
138 virtual void UpdateCreditCard(const CreditCard& credit_card); | 138 virtual void UpdateCreditCard(const CreditCard& credit_card); |
139 | 139 |
140 // Update a server card. Only the full number and masked/unmasked | 140 // Update a server card. Only the full number and masked/unmasked |
141 // status can be changed. | 141 // status can be changed. Looks up the card by server ID. |
142 virtual void UpdateServerCreditCard(const CreditCard& credit_card); | 142 virtual void UpdateServerCreditCard(const CreditCard& credit_card); |
143 | 143 |
| 144 // Updates the billing address for the server |credit_card|. Looks up the card |
| 145 // by GUID. |
| 146 void UpdateServerCardBillingAddress(const CreditCard& credit_card); |
| 147 |
144 // Resets the card for |guid| to the masked state. | 148 // Resets the card for |guid| to the masked state. |
145 void ResetFullServerCard(const std::string& guid); | 149 void ResetFullServerCard(const std::string& guid); |
146 | 150 |
147 // Resets all unmasked cards to the masked state. | 151 // Resets all unmasked cards to the masked state. |
148 void ResetFullServerCards(); | 152 void ResetFullServerCards(); |
149 | 153 |
150 // Deletes all server profiles and cards (both masked and unmasked). | 154 // Deletes all server profiles and cards (both masked and unmasked). |
151 void ClearAllServerData(); | 155 void ClearAllServerData(); |
152 | 156 |
153 // Sets a server credit card for test. | 157 // Sets a server credit card for test. |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 483 |
480 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. | 484 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. |
481 std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_; | 485 std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_; |
482 | 486 |
483 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 487 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
484 }; | 488 }; |
485 | 489 |
486 } // namespace autofill | 490 } // namespace autofill |
487 | 491 |
488 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 492 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
OLD | NEW |