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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void AddCreditCard(const CreditCard& credit_card); | 114 void AddCreditCard(const CreditCard& credit_card); |
115 | 115 |
116 // Updates |credit_card| which already exists in the web database. This | 116 // Updates |credit_card| which already exists in the web database. This |
117 // can only be used on local credit cards. | 117 // can only be used on local credit cards. |
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. |
| 125 void ResetFullServerCard(const std::string& guid); |
| 126 |
124 // Resets all unmasked cards to the masked state. | 127 // Resets all unmasked cards to the masked state. |
| 128 // TODO(estade): remove this. |
125 void ResetFullServerCards(); | 129 void ResetFullServerCards(); |
126 | 130 |
127 // Returns the credit card with the specified |guid|, or NULL if there is | 131 // Returns the credit card with the specified |guid|, or NULL if there is |
128 // no credit card with the specified |guid|. | 132 // no credit card with the specified |guid|. |
129 CreditCard* GetCreditCardByGUID(const std::string& guid); | 133 CreditCard* GetCreditCardByGUID(const std::string& guid); |
130 | 134 |
131 // Gets the field types availabe in the stored address and credit card data. | 135 // Gets the field types availabe in the stored address and credit card data. |
132 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); | 136 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); |
133 | 137 |
134 // Returns true if the credit card information is stored with a password. | 138 // Returns true if the credit card information is stored with a password. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 376 |
373 // An observer to listen for changes to prefs::kAutofillEnabled. | 377 // An observer to listen for changes to prefs::kAutofillEnabled. |
374 scoped_ptr<BooleanPrefMember> enabled_pref_; | 378 scoped_ptr<BooleanPrefMember> enabled_pref_; |
375 | 379 |
376 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 380 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
377 }; | 381 }; |
378 | 382 |
379 } // namespace autofill | 383 } // namespace autofill |
380 | 384 |
381 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 385 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
OLD | NEW |