| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "components/autofill/browser/webdata/autofill_webdata_backend_impl.h" | 5 #include "components/autofill/browser/webdata/autofill_webdata_backend_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "components/autofill/browser/autofill_country.h" | 10 #include "components/autofill/browser/autofill_country.h" |
| 11 #include "components/autofill/browser/autofill_profile.h" | 11 #include "components/autofill/browser/autofill_profile.h" |
| 12 #include "components/autofill/browser/credit_card.h" | 12 #include "components/autofill/browser/credit_card.h" |
| 13 #include "components/autofill/browser/webdata/autofill_change.h" | 13 #include "components/autofill/browser/webdata/autofill_change.h" |
| 14 #include "components/autofill/browser/webdata/autofill_entry.h" | 14 #include "components/autofill/browser/webdata/autofill_entry.h" |
| 15 #include "components/autofill/browser/webdata/autofill_table.h" | 15 #include "components/autofill/browser/webdata/autofill_table.h" |
| 16 #include "components/autofill/browser/webdata/autofill_webdata_service_observer.
h" | 16 #include "components/autofill/browser/webdata/autofill_webdata_service_observer.
h" |
| 17 #include "components/autofill/shared/form_field_data.h" | 17 #include "components/autofill/common/form_field_data.h" |
| 18 #include "components/webdata/common/web_data_service_backend.h" | 18 #include "components/webdata/common/web_data_service_backend.h" |
| 19 | 19 |
| 20 using base::Bind; | 20 using base::Bind; |
| 21 using base::Time; | 21 using base::Time; |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 | 23 |
| 24 namespace autofill { | 24 namespace autofill { |
| 25 | 25 |
| 26 AutofillWebDataBackendImpl::AutofillWebDataBackendImpl( | 26 AutofillWebDataBackendImpl::AutofillWebDataBackendImpl( |
| 27 scoped_refptr<WebDataServiceBackend> web_database_backend, | 27 scoped_refptr<WebDataServiceBackend> web_database_backend, |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 const WDTypedResult* result) { | 375 const WDTypedResult* result) { |
| 376 DCHECK(result->GetType() == AUTOFILL_CREDITCARDS_RESULT); | 376 DCHECK(result->GetType() == AUTOFILL_CREDITCARDS_RESULT); |
| 377 const WDResult<std::vector<CreditCard*> >* r = | 377 const WDResult<std::vector<CreditCard*> >* r = |
| 378 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); | 378 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); |
| 379 | 379 |
| 380 std::vector<CreditCard*> credit_cards = r->GetValue(); | 380 std::vector<CreditCard*> credit_cards = r->GetValue(); |
| 381 STLDeleteElements(&credit_cards); | 381 STLDeleteElements(&credit_cards); |
| 382 } | 382 } |
| 383 | 383 |
| 384 } // namespace autofill | 384 } // namespace autofill |
| OLD | NEW |