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

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

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 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/webdata/web_data_service.h"
10
11 // This aggregates a WebDataService and delegates all method calls to
12 // it.
13 class AutofillWebDataServiceImpl : public AutofillWebDataService {
dhollowa 2012/09/07 16:04:01 I find this name a bit confusing. Mainly because
14 public:
15 AutofillWebDataServiceImpl(scoped_refptr<WebDataService> service);
dhollowa 2012/09/07 16:04:01 nit: explicit
16
17 virtual WebDataServiceBase* NotificationSource() OVERRIDE;
dhollowa 2012/09/07 16:04:01 // AutofillWebDataService implementation.
18
19 // AutofillWebData implementation.
20 virtual void AddFormFields(
21 const std::vector<webkit::forms::FormField>& fields) OVERRIDE;
22 virtual WebDataServiceBase::Handle GetFormValuesForElementName(
23 const string16& name,
24 const string16& prefix,
25 int limit,
26 WebDataServiceConsumer* consumer) OVERRIDE;
27 virtual void RemoveExpiredFormElements() OVERRIDE;
28 virtual void RemoveFormValueForElementName(const string16& name,
29 const string16& value) OVERRIDE;
30 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE;
31 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE;
32 virtual void RemoveAutofillProfile(const std::string& guid) OVERRIDE;
33 virtual WebDataServiceBase::Handle GetAutofillProfiles(
34 WebDataServiceConsumer* consumer) OVERRIDE;
35 virtual void EmptyMigrationTrash(bool notify_sync) OVERRIDE;
36 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE;
37 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE;
38 virtual void RemoveCreditCard(const std::string& guid) OVERRIDE;
39 virtual WebDataServiceBase::Handle
40 GetCreditCards(WebDataServiceConsumer* consumer) OVERRIDE;
41
42 // WebDataServiceBase implementation.
43 virtual void CancelRequest(Handle h) OVERRIDE;
44
45 private:
46 const scoped_refptr<WebDataService> service_;
dhollowa 2012/09/07 16:04:01 How about |impl_|?
47 };
48
49 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698