| 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" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 autofill_backend_, id, full_number)); | 191 autofill_backend_, id, full_number)); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void AutofillWebDataService::MaskServerCreditCard(const std::string& id) { | 194 void AutofillWebDataService::MaskServerCreditCard(const std::string& id) { |
| 195 wdbs_->ScheduleDBTask( | 195 wdbs_->ScheduleDBTask( |
| 196 FROM_HERE, | 196 FROM_HERE, |
| 197 Bind(&AutofillWebDataBackendImpl::MaskServerCreditCard, | 197 Bind(&AutofillWebDataBackendImpl::MaskServerCreditCard, |
| 198 autofill_backend_, id)); | 198 autofill_backend_, id)); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void AutofillWebDataService::UpdateUnmaskedCardUsageStats( |
| 202 const CreditCard& credit_card) { |
| 203 wdbs_->ScheduleDBTask( |
| 204 FROM_HERE, |
| 205 Bind(&AutofillWebDataBackendImpl::UpdateUnmaskedCardUsageStats, |
| 206 autofill_backend_, credit_card)); |
| 207 } |
| 208 |
| 201 void AutofillWebDataService::RemoveAutofillDataModifiedBetween( | 209 void AutofillWebDataService::RemoveAutofillDataModifiedBetween( |
| 202 const Time& delete_begin, | 210 const Time& delete_begin, |
| 203 const Time& delete_end) { | 211 const Time& delete_end) { |
| 204 wdbs_->ScheduleDBTask( | 212 wdbs_->ScheduleDBTask( |
| 205 FROM_HERE, | 213 FROM_HERE, |
| 206 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween, | 214 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween, |
| 207 autofill_backend_, delete_begin, delete_end)); | 215 autofill_backend_, delete_begin, delete_end)); |
| 208 } | 216 } |
| 209 | 217 |
| 210 void AutofillWebDataService::RemoveOriginURLsModifiedBetween( | 218 void AutofillWebDataService::RemoveOriginURLsModifiedBetween( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 263 } |
| 256 | 264 |
| 257 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { | 265 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { |
| 258 DCHECK(ui_thread_->BelongsToCurrentThread()); | 266 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 259 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, | 267 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, |
| 260 ui_observer_list_, | 268 ui_observer_list_, |
| 261 AutofillMultipleChanged()); | 269 AutofillMultipleChanged()); |
| 262 } | 270 } |
| 263 | 271 |
| 264 } // namespace autofill | 272 } // namespace autofill |
| OLD | NEW |