Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/webdata/autofill_web_data_service_impl.h" | |
| 6 | |
| 7 AutofillWebDataServiceImpl::AutofillWebDataServiceImpl( | |
| 8 scoped_refptr<WebDataService> service) | |
| 9 : service_(service) { | |
| 10 DCHECK(service.get()); | |
|
erikwright (departed)
2012/09/13 01:45:11
include logging.h?
Jói
2012/09/13 12:34:50
Done.
| |
| 11 } | |
| 12 | |
| 13 AutofillWebDataServiceImpl::~AutofillWebDataServiceImpl() { | |
| 14 } | |
| 15 | |
| 16 void AutofillWebDataServiceImpl::AddFormFields( | |
| 17 const std::vector<webkit::forms::FormField>& fields) { | |
| 18 service_->AddFormFields(fields); | |
| 19 } | |
| 20 | |
| 21 WebDataServiceBase::Handle | |
| 22 AutofillWebDataServiceImpl::GetFormValuesForElementName( | |
| 23 const string16& name, | |
| 24 const string16& prefix, | |
| 25 int limit, | |
| 26 WebDataServiceConsumer* consumer) { | |
| 27 return service_->GetFormValuesForElementName(name, prefix, limit, consumer); | |
| 28 } | |
| 29 | |
| 30 void AutofillWebDataServiceImpl::RemoveExpiredFormElements() { | |
| 31 service_->RemoveExpiredFormElements(); | |
| 32 } | |
| 33 | |
| 34 void AutofillWebDataServiceImpl::RemoveFormValueForElementName( | |
| 35 const string16& name, const string16& value) { | |
| 36 service_->RemoveFormValueForElementName(name, value); | |
| 37 } | |
| 38 | |
| 39 void AutofillWebDataServiceImpl::AddAutofillProfile( | |
| 40 const AutofillProfile& profile) { | |
| 41 service_->AddAutofillProfile(profile); | |
| 42 } | |
| 43 | |
| 44 void AutofillWebDataServiceImpl::UpdateAutofillProfile( | |
| 45 const AutofillProfile& profile) { | |
| 46 service_->UpdateAutofillProfile(profile); | |
| 47 } | |
| 48 | |
| 49 void AutofillWebDataServiceImpl::RemoveAutofillProfile( | |
| 50 const std::string& guid) { | |
| 51 service_->RemoveAutofillProfile(guid); | |
| 52 } | |
| 53 | |
| 54 WebDataServiceBase::Handle AutofillWebDataServiceImpl::GetAutofillProfiles( | |
| 55 WebDataServiceConsumer* consumer) { | |
| 56 return service_->GetAutofillProfiles(consumer); | |
| 57 } | |
| 58 | |
| 59 void AutofillWebDataServiceImpl::EmptyMigrationTrash(bool notify_sync) { | |
| 60 service_->EmptyMigrationTrash(notify_sync); | |
| 61 } | |
| 62 | |
| 63 void AutofillWebDataServiceImpl::AddCreditCard(const CreditCard& credit_card) { | |
| 64 service_->AddCreditCard(credit_card); | |
| 65 } | |
| 66 | |
| 67 void AutofillWebDataServiceImpl::UpdateCreditCard( | |
| 68 const CreditCard& credit_card) { | |
| 69 service_->UpdateCreditCard(credit_card); | |
| 70 } | |
| 71 | |
| 72 void AutofillWebDataServiceImpl::RemoveCreditCard(const std::string& guid) { | |
| 73 service_->RemoveCreditCard(guid); | |
| 74 } | |
| 75 | |
| 76 WebDataServiceBase::Handle | |
| 77 AutofillWebDataServiceImpl::GetCreditCards(WebDataServiceConsumer* consumer) { | |
| 78 return service_->GetCreditCards(consumer); | |
| 79 } | |
| 80 | |
| 81 void AutofillWebDataServiceImpl::CancelRequest(Handle h) { | |
| 82 service_->CancelRequest(h); | |
| 83 } | |
| 84 | |
| 85 WebDataServiceBase* AutofillWebDataServiceImpl::GetNotificationSource() { | |
| 86 return service_->GetNotificationSource(); | |
| 87 } | |
| OLD | NEW |