| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void UpdateCreditCard(const CreditCard& credit_card); | 118 void UpdateCreditCard(const CreditCard& credit_card); |
| 119 | 119 |
| 120 // Update a server card. Only the full number and masked/unmasked | 120 // Update a server card. Only the full number and masked/unmasked |
| 121 // status can be changed. | 121 // status can be changed. |
| 122 void UpdateServerCreditCard(const CreditCard& credit_card); | 122 void UpdateServerCreditCard(const CreditCard& credit_card); |
| 123 | 123 |
| 124 // Resets the card for |guid| to the masked state. | 124 // Resets the card for |guid| to the masked state. |
| 125 void ResetFullServerCard(const std::string& guid); | 125 void ResetFullServerCard(const std::string& guid); |
| 126 | 126 |
| 127 // Resets all unmasked cards to the masked state. | 127 // Resets all unmasked cards to the masked state. |
| 128 // TODO(estade): remove this. | |
| 129 void ResetFullServerCards(); | 128 void ResetFullServerCards(); |
| 130 | 129 |
| 131 // Returns the credit card with the specified |guid|, or NULL if there is | 130 // Returns the credit card with the specified |guid|, or NULL if there is |
| 132 // no credit card with the specified |guid|. | 131 // no credit card with the specified |guid|. |
| 133 CreditCard* GetCreditCardByGUID(const std::string& guid); | 132 CreditCard* GetCreditCardByGUID(const std::string& guid); |
| 134 | 133 |
| 135 // Gets the field types availabe in the stored address and credit card data. | 134 // Gets the field types availabe in the stored address and credit card data. |
| 136 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); | 135 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); |
| 137 | 136 |
| 138 // Returns true if the credit card information is stored with a password. | 137 // Returns true if the credit card information is stored with a password. |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 378 |
| 380 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. | 379 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. |
| 381 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_; | 380 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_; |
| 382 | 381 |
| 383 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 382 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 384 }; | 383 }; |
| 385 | 384 |
| 386 } // namespace autofill | 385 } // namespace autofill |
| 387 | 386 |
| 388 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 387 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |