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 #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" | |
|
erikwright (departed)
2012/09/13 01:45:11
#include "chrome/browser/api/webdata/autofill_web_
Jói
2012/09/13 12:34:50
Done.
| |
| 10 | |
| 11 // This aggregates a WebDataService and delegates all method calls to | |
| 12 // it. | |
| 13 class AutofillWebDataServiceImpl : public AutofillWebDataService { | |
| 14 public: | |
| 15 explicit AutofillWebDataServiceImpl(scoped_refptr<WebDataService> service); | |
| 16 virtual ~AutofillWebDataServiceImpl(); | |
| 17 | |
| 18 // AutofillWebData implementation. | |
| 19 virtual void AddFormFields( | |
| 20 const std::vector<webkit::forms::FormField>& fields) OVERRIDE; | |
| 21 virtual WebDataServiceBase::Handle GetFormValuesForElementName( | |
| 22 const string16& name, | |
| 23 const string16& prefix, | |
| 24 int limit, | |
| 25 WebDataServiceConsumer* consumer) OVERRIDE; | |
| 26 virtual void RemoveExpiredFormElements() OVERRIDE; | |
| 27 virtual void RemoveFormValueForElementName(const string16& name, | |
| 28 const string16& value) OVERRIDE; | |
| 29 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; | |
| 30 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; | |
| 31 virtual void RemoveAutofillProfile(const std::string& guid) OVERRIDE; | |
| 32 virtual WebDataServiceBase::Handle GetAutofillProfiles( | |
| 33 WebDataServiceConsumer* consumer) OVERRIDE; | |
| 34 virtual void EmptyMigrationTrash(bool notify_sync) OVERRIDE; | |
| 35 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE; | |
| 36 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE; | |
| 37 virtual void RemoveCreditCard(const std::string& guid) OVERRIDE; | |
| 38 virtual WebDataServiceBase::Handle | |
| 39 GetCreditCards(WebDataServiceConsumer* consumer) OVERRIDE; | |
| 40 | |
| 41 // WebDataServiceBase implementation. | |
| 42 virtual void CancelRequest(Handle h) OVERRIDE; | |
| 43 virtual WebDataServiceBase* GetNotificationSource() OVERRIDE; | |
| 44 | |
| 45 private: | |
| 46 const scoped_refptr<WebDataService> service_; | |
|
erikwright (departed)
2012/09/13 01:45:11
DISALLOW_COPY_AND_ASSIGN?
Jói
2012/09/13 12:34:50
Done.
| |
| 47 }; | |
| 48 | |
| 49 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | |
| OLD | NEW |