Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_service.cc

Issue 2626843004: [Payments] Add billing_address_id and has_converted to autofill_table (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 autofill_backend_, id)); 205 autofill_backend_, id));
206 } 206 }
207 207
208 void AutofillWebDataService::ClearAllServerData() { 208 void AutofillWebDataService::ClearAllServerData() {
209 wdbs_->ScheduleDBTask( 209 wdbs_->ScheduleDBTask(
210 FROM_HERE, 210 FROM_HERE,
211 Bind(&AutofillWebDataBackendImpl::ClearAllServerData, 211 Bind(&AutofillWebDataBackendImpl::ClearAllServerData,
212 autofill_backend_)); 212 autofill_backend_));
213 } 213 }
214 214
215 void AutofillWebDataService::UpdateServerCardUsageStats( 215 void AutofillWebDataService::UpdateServerCardMetadata(
216 const CreditCard& credit_card) { 216 const CreditCard& credit_card) {
217 wdbs_->ScheduleDBTask( 217 wdbs_->ScheduleDBTask(
218 FROM_HERE, 218 FROM_HERE, Bind(&AutofillWebDataBackendImpl::UpdateServerCardMetadata,
219 Bind(&AutofillWebDataBackendImpl::UpdateServerCardUsageStats, 219 autofill_backend_, credit_card));
220 autofill_backend_, credit_card));
221 } 220 }
222 221
223 void AutofillWebDataService::UpdateServerAddressUsageStats( 222 void AutofillWebDataService::UpdateServerAddressMetadata(
224 const AutofillProfile& profile) { 223 const AutofillProfile& profile) {
225 wdbs_->ScheduleDBTask( 224 wdbs_->ScheduleDBTask(
226 FROM_HERE, 225 FROM_HERE,
227 Bind(&AutofillWebDataBackendImpl::UpdateServerAddressUsageStats, 226 Bind(&AutofillWebDataBackendImpl::UpdateServerAddressMetadata,
228 autofill_backend_, profile)); 227 autofill_backend_, profile));
229 } 228 }
230 229
231 void AutofillWebDataService::UpdateServerCardBillingAddress(
232 const CreditCard& credit_card) {
233 wdbs_->ScheduleDBTask(
234 FROM_HERE,
235 Bind(&AutofillWebDataBackendImpl::UpdateServerCardBillingAddress,
236 autofill_backend_, credit_card));
237 }
238
239 void AutofillWebDataService::RemoveAutofillDataModifiedBetween( 230 void AutofillWebDataService::RemoveAutofillDataModifiedBetween(
240 const Time& delete_begin, 231 const Time& delete_begin,
241 const Time& delete_end) { 232 const Time& delete_end) {
242 wdbs_->ScheduleDBTask( 233 wdbs_->ScheduleDBTask(
243 FROM_HERE, 234 FROM_HERE,
244 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween, 235 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween,
245 autofill_backend_, delete_begin, delete_end)); 236 autofill_backend_, delete_begin, delete_end));
246 } 237 }
247 238
248 void AutofillWebDataService::RemoveOriginURLsModifiedBetween( 239 void AutofillWebDataService::RemoveOriginURLsModifiedBetween(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 291 }
301 292
302 void AutofillWebDataService::NotifySyncStartedOnUIThread( 293 void AutofillWebDataService::NotifySyncStartedOnUIThread(
303 syncer::ModelType model_type) { 294 syncer::ModelType model_type) {
304 DCHECK(ui_thread_->BelongsToCurrentThread()); 295 DCHECK(ui_thread_->BelongsToCurrentThread());
305 for (auto& ui_observer : ui_observer_list_) 296 for (auto& ui_observer : ui_observer_list_)
306 ui_observer.SyncStarted(model_type); 297 ui_observer.SyncStarted(model_type);
307 } 298 }
308 299
309 } // namespace autofill 300 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698