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

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

Issue 2703673002: [Merge-57] Add billing_address_id and has_converted to autofill_table (Closed)
Patch Set: Created 3 years, 10 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, Bind(&AutofillWebDataBackendImpl::UpdateServerAddressMetadata,
227 Bind(&AutofillWebDataBackendImpl::UpdateServerAddressUsageStats, 226 autofill_backend_, profile));
228 autofill_backend_, profile));
229 }
230
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 } 227 }
238 228
239 void AutofillWebDataService::RemoveAutofillDataModifiedBetween( 229 void AutofillWebDataService::RemoveAutofillDataModifiedBetween(
240 const Time& delete_begin, 230 const Time& delete_begin,
241 const Time& delete_end) { 231 const Time& delete_end) {
242 wdbs_->ScheduleDBTask( 232 wdbs_->ScheduleDBTask(
243 FROM_HERE, 233 FROM_HERE,
244 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween, 234 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween,
245 autofill_backend_, delete_begin, delete_end)); 235 autofill_backend_, delete_begin, delete_end));
246 } 236 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 290 }
301 291
302 void AutofillWebDataService::NotifySyncStartedOnUIThread( 292 void AutofillWebDataService::NotifySyncStartedOnUIThread(
303 syncer::ModelType model_type) { 293 syncer::ModelType model_type) {
304 DCHECK(ui_thread_->BelongsToCurrentThread()); 294 DCHECK(ui_thread_->BelongsToCurrentThread());
305 for (auto& ui_observer : ui_observer_list_) 295 for (auto& ui_observer : ui_observer_list_)
306 ui_observer.SyncStarted(model_type); 296 ui_observer.SyncStarted(model_type);
307 } 297 }
308 298
309 } // namespace autofill 299 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_webdata_service.h ('k') | components/test/data/web_database/version_70.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698