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

Side by Side Diff: chrome/browser/webdata/autofill_web_data_service_impl.cc

Issue 10908065: Introduce a couple of abstract bases for WebDataService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
(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());
11 }
12
13 WebDataServiceBase* NotificationSource() {
14 return service_.get();
15 }
16
17 void AutofillWebDataServiceImpl::AddFormFields(
18 const std::vector<webkit::forms::FormField>& fields) {
19 service_->AddFormFields(fields);
20 }
21
22 WebDataServiceBase::Handle
23 AutofillWebDataServiceImpl::GetFormValuesForElementName(
24 const string16& name,
25 const string16& prefix,
26 int limit,
27 WebDataServiceConsumer* consumer) {
28 return service_->GetFormValuesForElementName(name, prefix, limit, consumer);
29 }
30
31 void AutofillWebDataServiceImpl::RemoveExpiredFormElements() {
32 service_->RemoveExpiredFormElements();
33 }
34
35 void AutofillWebDataServiceImpl::RemoveFormValueForElementName(
36 const string16& name, const string16& value) {
37 service_->RemoveFormValueForElementName(name, value);
38 }
39
40 void AutofillWebDataServiceImpl::AddAutofillProfile(
41 const AutofillProfile& profile) {
42 service_->AddAutofillProfile(profile);
43 }
44
45 void AutofillWebDataServiceImpl::UpdateAutofillProfile(
46 const AutofillProfile& profile) {
47 service_->UpdateAutofillProfile(profile);
48 }
49
50 void AutofillWebDataServiceImpl::RemoveAutofillProfile(
51 const std::string& guid) {
52 service_->RemoveAutofillProfile(guid);
53 }
54
55 WebDataServiceBase::Handle AutofillWebDataServiceImpl::GetAutofillProfiles(
56 WebDataServiceConsumer* consumer) {
57 return service_->GetAutofillProfiles(consumer);
58 }
59
60 void AutofillWebDataServiceImpl::EmptyMigrationTrash(bool notify_sync) {
61 service_->EmptyMigrationTrash(notify_sync);
62 }
63
64 void AutofillWebDataServiceImpl::AddCreditCard(const CreditCard& credit_card) {
65 service_->AddCreditCard(credit_card);
66 }
67
68 void AutofillWebDataServiceImpl::UpdateCreditCard(
69 const CreditCard& credit_card) {
70 service_->UpdateCreditCard(credit_card);
71 }
72
73 void AutofillWebDataServiceImpl::RemoveCreditCard(const std::string& guid) {
74 service_->RemoveCreditCard(guid);
75 }
76
77 WebDataServiceBase::Handle
78 AutofillWebDataServiceImpl::GetCreditCards(WebDataServiceConsumer* consumer) {
79 return service_->GetCreditCards(consumer);
80 }
81
82 void AutofillWebDataServiceImpl::CancelRequest(Handle h) {
83 service_->CancelRequest(h);
84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698