| 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 <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void ResetFullServerCards(); | 162 void ResetFullServerCards(); |
| 163 | 163 |
| 164 // Deletes all server profiles and cards (both masked and unmasked). | 164 // Deletes all server profiles and cards (both masked and unmasked). |
| 165 void ClearAllServerData(); | 165 void ClearAllServerData(); |
| 166 | 166 |
| 167 // Sets a server credit card for test. | 167 // Sets a server credit card for test. |
| 168 void AddServerCreditCardForTest(std::unique_ptr<CreditCard> credit_card); | 168 void AddServerCreditCardForTest(std::unique_ptr<CreditCard> credit_card); |
| 169 | 169 |
| 170 // Returns the credit card with the specified |guid|, or NULL if there is | 170 // Returns the credit card with the specified |guid|, or NULL if there is |
| 171 // no credit card with the specified |guid|. | 171 // no credit card with the specified |guid|. |
| 172 CreditCard* GetCreditCardByGUID(const std::string& guid); | 172 virtual CreditCard* GetCreditCardByGUID(const std::string& guid); |
| 173 | 173 |
| 174 // Gets the field types availabe in the stored address and credit card data. | 174 // Gets the field types availabe in the stored address and credit card data. |
| 175 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); | 175 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); |
| 176 | 176 |
| 177 // Returns true if the credit card information is stored with a password. | 177 // Returns true if the credit card information is stored with a password. |
| 178 bool HasPassword(); | 178 bool HasPassword(); |
| 179 | 179 |
| 180 // Returns whether the personal data has been loaded from the web database. | 180 // Returns whether the personal data has been loaded from the web database. |
| 181 virtual bool IsDataLoaded() const; | 181 virtual bool IsDataLoaded() const; |
| 182 | 182 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 // validation rules. | 532 // validation rules. |
| 533 scoped_refptr<net::URLRequestContextGetter> context_getter_; | 533 scoped_refptr<net::URLRequestContextGetter> context_getter_; |
| 534 #endif | 534 #endif |
| 535 | 535 |
| 536 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 536 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 537 }; | 537 }; |
| 538 | 538 |
| 539 } // namespace autofill | 539 } // namespace autofill |
| 540 | 540 |
| 541 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 541 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |