| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Returns the profile with the specified |guid|, or NULL if there is no | 128 // Returns the profile with the specified |guid|, or NULL if there is no |
| 129 // profile with the specified |guid|. Both web and auxiliary profiles may | 129 // profile with the specified |guid|. Both web and auxiliary profiles may |
| 130 // be returned. | 130 // be returned. |
| 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 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. |
| 142 void UpdateServerCreditCard(const CreditCard& credit_card); | 142 virtual void UpdateServerCreditCard(const CreditCard& credit_card); |
| 143 | 143 |
| 144 // Resets the card for |guid| to the masked state. | 144 // Resets the card for |guid| to the masked state. |
| 145 void ResetFullServerCard(const std::string& guid); | 145 void ResetFullServerCard(const std::string& guid); |
| 146 | 146 |
| 147 // Resets all unmasked cards to the masked state. | 147 // Resets all unmasked cards to the masked state. |
| 148 void ResetFullServerCards(); | 148 void ResetFullServerCards(); |
| 149 | 149 |
| 150 // Deletes all server profiles and cards (both masked and unmasked). | 150 // Deletes all server profiles and cards (both masked and unmasked). |
| 151 void ClearAllServerData(); | 151 void ClearAllServerData(); |
| 152 | 152 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 428 |
| 429 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. | 429 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. |
| 430 std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_; | 430 std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_; |
| 431 | 431 |
| 432 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 432 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 } // namespace autofill | 435 } // namespace autofill |
| 436 | 436 |
| 437 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 437 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |