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 "chrome/browser/webdata/autofill_web_data_service.h" | 5 #include "components/webdata/autofill/autofill_webdata_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "chrome/browser/webdata/autofill_change.h" | |
10 #include "chrome/browser/webdata/autofill_entry.h" | |
11 #include "chrome/browser/webdata/autofill_table.h" | |
12 #include "chrome/browser/webdata/autofill_web_data_service_observer.h" | |
13 #include "chrome/browser/webdata/web_database_service.h" | |
14 #include "components/autofill/browser/autofill_country.h" | 9 #include "components/autofill/browser/autofill_country.h" |
15 #include "components/autofill/browser/autofill_profile.h" | 10 #include "components/autofill/browser/autofill_profile.h" |
16 #include "components/autofill/browser/credit_card.h" | 11 #include "components/autofill/browser/credit_card.h" |
17 #include "components/autofill/common/form_field_data.h" | 12 #include "components/autofill/common/form_field_data.h" |
| 13 #include "components/webdata/autofill/autofill_change.h" |
| 14 #include "components/webdata/autofill/autofill_entry.h" |
| 15 #include "components/webdata/autofill/autofill_table.h" |
| 16 #include "components/webdata/autofill/autofill_webdata_service_observer.h" |
| 17 #include "components/webdata/common/web_database_service.h" |
18 | 18 |
19 using base::Bind; | 19 using base::Bind; |
20 using base::Time; | 20 using base::Time; |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 // static | 23 // static |
24 void AutofillWebDataService::NotifyOfMultipleAutofillChanges( | 24 void AutofillWebDataService::NotifyOfMultipleAutofillChanges( |
25 AutofillWebDataService* web_data_service) { | 25 AutofillWebDataService* web_data_service) { |
26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); | 26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); |
27 | 27 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 std::vector<CreditCard*> credit_cards = r->GetValue(); | 449 std::vector<CreditCard*> credit_cards = r->GetValue(); |
450 STLDeleteElements(&credit_cards); | 450 STLDeleteElements(&credit_cards); |
451 } | 451 } |
452 | 452 |
453 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { | 453 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { |
454 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 454 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
455 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, | 455 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, |
456 ui_observer_list_, | 456 ui_observer_list_, |
457 AutofillMultipleChanged()); | 457 AutofillMultipleChanged()); |
458 } | 458 } |
OLD | NEW |