| 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 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 5 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "components/autofill/core/browser/autofill_country.h" | 11 #include "components/autofill/core/browser/autofill_country.h" |
| 12 #include "components/autofill/core/browser/autofill_profile.h" | 12 #include "components/autofill/core/browser/autofill_profile.h" |
| 13 #include "components/autofill/core/browser/credit_card.h" | 13 #include "components/autofill/core/browser/credit_card.h" |
| 14 #include "components/autofill/core/browser/webdata/autofill_change.h" | 14 #include "components/autofill/core/browser/webdata/autofill_change.h" |
| 15 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 15 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| 16 #include "components/autofill/core/browser/webdata/autofill_table.h" | 16 #include "components/autofill/core/browser/webdata/autofill_table.h" |
| 17 #include "components/autofill/core/browser/webdata/autofill_webdata_backend_impl
.h" | 17 #include "components/autofill/core/browser/webdata/autofill_webdata_backend_impl
.h" |
| 18 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse
rver.h" | 18 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse
rver.h" |
| 19 #include "components/autofill/core/common/form_field_data.h" | 19 #include "components/autofill/core/common/form_field_data.h" |
| 20 #include "components/webdata/common/web_data_service_backend.h" | 20 #include "components/webdata/common/web_database_backend.h" |
| 21 #include "components/webdata/common/web_database_service.h" | 21 #include "components/webdata/common/web_database_service.h" |
| 22 | 22 |
| 23 using base::Bind; | 23 using base::Bind; |
| 24 using base::Time; | 24 using base::Time; |
| 25 | 25 |
| 26 namespace autofill { | 26 namespace autofill { |
| 27 | 27 |
| 28 AutofillWebDataService::AutofillWebDataService( | 28 AutofillWebDataService::AutofillWebDataService( |
| 29 scoped_refptr<WebDatabaseService> wdbs, | 29 scoped_refptr<WebDatabaseService> wdbs, |
| 30 scoped_refptr<base::MessageLoopProxy> ui_thread, | 30 scoped_refptr<base::MessageLoopProxy> ui_thread, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 } | 263 } |
| 264 | 264 |
| 265 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { | 265 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { |
| 266 DCHECK(ui_thread_->BelongsToCurrentThread()); | 266 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 267 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, | 267 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, |
| 268 ui_observer_list_, | 268 ui_observer_list_, |
| 269 AutofillMultipleChanged()); | 269 AutofillMultipleChanged()); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } // namespace autofill | 272 } // namespace autofill |
| OLD | NEW |