| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void AddCreditCard(const CreditCard& credit_card); | 108 void AddCreditCard(const CreditCard& credit_card); |
| 109 | 109 |
| 110 // Updates |credit_card| which already exists in the web database. This | 110 // Updates |credit_card| which already exists in the web database. This |
| 111 // can only be used on local credit cards. | 111 // can only be used on local credit cards. |
| 112 void UpdateCreditCard(const CreditCard& credit_card); | 112 void UpdateCreditCard(const CreditCard& credit_card); |
| 113 | 113 |
| 114 // Update a server card. Only the full number and masked/unmasked | 114 // Update a server card. Only the full number and masked/unmasked |
| 115 // status can be changed. | 115 // status can be changed. |
| 116 void UpdateServerCreditCard(const CreditCard& credit_card); | 116 void UpdateServerCreditCard(const CreditCard& credit_card); |
| 117 | 117 |
| 118 // Resets all unmasked cards to the masked state. |
| 119 void ResetFullServerCards(); |
| 120 |
| 118 // Returns the credit card with the specified |guid|, or NULL if there is | 121 // Returns the credit card with the specified |guid|, or NULL if there is |
| 119 // no credit card with the specified |guid|. | 122 // no credit card with the specified |guid|. |
| 120 CreditCard* GetCreditCardByGUID(const std::string& guid); | 123 CreditCard* GetCreditCardByGUID(const std::string& guid); |
| 121 | 124 |
| 122 // Gets the field types availabe in the stored address and credit card data. | 125 // Gets the field types availabe in the stored address and credit card data. |
| 123 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); | 126 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); |
| 124 | 127 |
| 125 // Returns true if the credit card information is stored with a password. | 128 // Returns true if the credit card information is stored with a password. |
| 126 bool HasPassword(); | 129 bool HasPassword(); |
| 127 | 130 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 357 |
| 355 // An observer to listen for changes to prefs::kAutofillEnabled. | 358 // An observer to listen for changes to prefs::kAutofillEnabled. |
| 356 scoped_ptr<BooleanPrefMember> enabled_pref_; | 359 scoped_ptr<BooleanPrefMember> enabled_pref_; |
| 357 | 360 |
| 358 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 361 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 359 }; | 362 }; |
| 360 | 363 |
| 361 } // namespace autofill | 364 } // namespace autofill |
| 362 | 365 |
| 363 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 366 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |