| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // Resets all unmasked cards to the masked state. | 151 // Resets all unmasked cards to the masked state. |
| 152 void ResetFullServerCards(); | 152 void ResetFullServerCards(); |
| 153 | 153 |
| 154 // Deletes all server profiles and cards (both masked and unmasked). | 154 // Deletes all server profiles and cards (both masked and unmasked). |
| 155 void ClearAllServerData(); | 155 void ClearAllServerData(); |
| 156 | 156 |
| 157 // Sets a server credit card for test. | 157 // Sets a server credit card for test. |
| 158 void AddServerCreditCardForTest(std::unique_ptr<CreditCard> credit_card); | 158 void AddServerCreditCardForTest(std::unique_ptr<CreditCard> credit_card); |
| 159 | 159 |
| 160 // Notifies test observers that personal data has changed. |
| 161 void NotifyPersonalDataChangedForTests(); |
| 162 |
| 160 // Returns the credit card with the specified |guid|, or NULL if there is | 163 // Returns the credit card with the specified |guid|, or NULL if there is |
| 161 // no credit card with the specified |guid|. | 164 // no credit card with the specified |guid|. |
| 162 CreditCard* GetCreditCardByGUID(const std::string& guid); | 165 CreditCard* GetCreditCardByGUID(const std::string& guid); |
| 163 | 166 |
| 164 // Gets the field types availabe in the stored address and credit card data. | 167 // Gets the field types availabe in the stored address and credit card data. |
| 165 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); | 168 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); |
| 166 | 169 |
| 167 // Returns true if the credit card information is stored with a password. | 170 // Returns true if the credit card information is stored with a password. |
| 168 bool HasPassword(); | 171 bool HasPassword(); |
| 169 | 172 |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 486 |
| 484 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. | 487 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. |
| 485 std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_; | 488 std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_; |
| 486 | 489 |
| 487 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 490 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 488 }; | 491 }; |
| 489 | 492 |
| 490 } // namespace autofill | 493 } // namespace autofill |
| 491 | 494 |
| 492 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 495 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |