blob: 09b083c57ed06da160e0b238aa29d8901ec5319b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/webdata/autofill_web_data_service_impl.h"
#include "base/logging.h"
#include "chrome/browser/webdata/web_data_service.h"
AutofillWebDataServiceImpl::AutofillWebDataServiceImpl(
scoped_refptr<WebDataService> service)
: service_(service) {
DCHECK(service.get());
}
AutofillWebDataServiceImpl::~AutofillWebDataServiceImpl() {
}
void AutofillWebDataServiceImpl::AddFormFields(
const std::vector<FormFieldData>& fields) {
service_->AddFormFields(fields);
}
WebDataServiceBase::Handle
AutofillWebDataServiceImpl::GetFormValuesForElementName(
const string16& name,
const string16& prefix,
int limit,
WebDataServiceConsumer* consumer) {
return service_->GetFormValuesForElementName(name, prefix, limit, consumer);
}
void AutofillWebDataServiceImpl::RemoveExpiredFormElements() {
service_->RemoveExpiredFormElements();
}
void AutofillWebDataServiceImpl::RemoveFormValueForElementName(
const string16& name, const string16& value) {
service_->RemoveFormValueForElementName(name, value);
}
void AutofillWebDataServiceImpl::AddAutofillProfile(
const AutofillProfile& profile) {
service_->AddAutofillProfile(profile);
}
void AutofillWebDataServiceImpl::UpdateAutofillProfile(
const AutofillProfile& profile) {
service_->UpdateAutofillProfile(profile);
}
void AutofillWebDataServiceImpl::RemoveAutofillProfile(
const std::string& guid) {
service_->RemoveAutofillProfile(guid);
}
WebDataServiceBase::Handle AutofillWebDataServiceImpl::GetAutofillProfiles(
WebDataServiceConsumer* consumer) {
return service_->GetAutofillProfiles(consumer);
}
void AutofillWebDataServiceImpl::EmptyMigrationTrash(bool notify_sync) {
service_->EmptyMigrationTrash(notify_sync);
}
void AutofillWebDataServiceImpl::AddCreditCard(const CreditCard& credit_card) {
service_->AddCreditCard(credit_card);
}
void AutofillWebDataServiceImpl::UpdateCreditCard(
const CreditCard& credit_card) {
service_->UpdateCreditCard(credit_card);
}
void AutofillWebDataServiceImpl::RemoveCreditCard(const std::string& guid) {
service_->RemoveCreditCard(guid);
}
WebDataServiceBase::Handle
AutofillWebDataServiceImpl::GetCreditCards(WebDataServiceConsumer* consumer) {
return service_->GetCreditCards(consumer);
}
void AutofillWebDataServiceImpl::CancelRequest(Handle h) {
service_->CancelRequest(h);
}
content::NotificationSource
AutofillWebDataServiceImpl::GetNotificationSource() {
return service_->GetNotificationSource();
}
|