| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 // Storage for web profiles. Contents are weak references. Lifetime managed | 410 // Storage for web profiles. Contents are weak references. Lifetime managed |
| 411 // by |web_profiles_|. | 411 // by |web_profiles_|. |
| 412 mutable std::vector<AutofillProfile*> profiles_; | 412 mutable std::vector<AutofillProfile*> profiles_; |
| 413 | 413 |
| 414 // Cached versions of the local and server credit cards. | 414 // Cached versions of the local and server credit cards. |
| 415 std::vector<std::unique_ptr<CreditCard>> local_credit_cards_; | 415 std::vector<std::unique_ptr<CreditCard>> local_credit_cards_; |
| 416 std::vector<std::unique_ptr<CreditCard>> server_credit_cards_; | 416 std::vector<std::unique_ptr<CreditCard>> server_credit_cards_; |
| 417 | 417 |
| 418 // A combination of local and server credit cards. The pointers are owned | 418 // A combination of local and server credit cards. The pointers are owned |
| 419 // by the local/sverver_credit_cards_ vectors. | 419 // by the local/server_credit_cards_ vectors. |
| 420 mutable std::vector<CreditCard*> credit_cards_; | 420 mutable std::vector<CreditCard*> credit_cards_; |
| 421 | 421 |
| 422 // When the manager makes a request from WebDataServiceBase, the database | 422 // When the manager makes a request from WebDataServiceBase, the database |
| 423 // is queried on another thread, we record the query handle until we | 423 // is queried on another thread, we record the query handle until we |
| 424 // get called back. We store handles for both profile and credit card queries | 424 // get called back. We store handles for both profile and credit card queries |
| 425 // so they can be loaded at the same time. | 425 // so they can be loaded at the same time. |
| 426 WebDataServiceBase::Handle pending_profiles_query_; | 426 WebDataServiceBase::Handle pending_profiles_query_; |
| 427 WebDataServiceBase::Handle pending_server_profiles_query_; | 427 WebDataServiceBase::Handle pending_server_profiles_query_; |
| 428 WebDataServiceBase::Handle pending_creditcards_query_; | 428 WebDataServiceBase::Handle pending_creditcards_query_; |
| 429 WebDataServiceBase::Handle pending_server_creditcards_query_; | 429 WebDataServiceBase::Handle pending_server_creditcards_query_; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 // validation rules. | 546 // validation rules. |
| 547 scoped_refptr<net::URLRequestContextGetter> context_getter_; | 547 scoped_refptr<net::URLRequestContextGetter> context_getter_; |
| 548 #endif | 548 #endif |
| 549 | 549 |
| 550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 551 }; | 551 }; |
| 552 | 552 |
| 553 } // namespace autofill | 553 } // namespace autofill |
| 554 | 554 |
| 555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |