OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ |
6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "chrome/browser/api/webdata/autofill_web_data_service.h" | 9 #include "chrome/browser/api/webdata/autofill_web_data_service.h" |
10 | 10 |
11 class WebDataService; | 11 class WebDataService; |
12 | 12 |
13 // This aggregates a WebDataService and delegates all method calls to | 13 // This aggregates a WebDataService and delegates all method calls to |
14 // it. | 14 // it. |
15 class AutofillWebDataServiceImpl : public AutofillWebDataService { | 15 class AutofillWebDataServiceImpl : public AutofillWebDataService { |
16 public: | 16 public: |
17 explicit AutofillWebDataServiceImpl(scoped_refptr<WebDataService> service); | 17 explicit AutofillWebDataServiceImpl(scoped_refptr<WebDataService> service); |
18 virtual ~AutofillWebDataServiceImpl(); | 18 virtual ~AutofillWebDataServiceImpl(); |
19 | 19 |
20 // AutofillWebData implementation. | 20 // AutofillWebData implementation. |
21 virtual void AddFormFields( | 21 virtual void AddFormFields( |
22 const std::vector<webkit::forms::FormField>& fields) OVERRIDE; | 22 const std::vector<FormFieldData>& fields) OVERRIDE; |
23 virtual WebDataServiceBase::Handle GetFormValuesForElementName( | 23 virtual WebDataServiceBase::Handle GetFormValuesForElementName( |
24 const string16& name, | 24 const string16& name, |
25 const string16& prefix, | 25 const string16& prefix, |
26 int limit, | 26 int limit, |
27 WebDataServiceConsumer* consumer) OVERRIDE; | 27 WebDataServiceConsumer* consumer) OVERRIDE; |
28 virtual void RemoveExpiredFormElements() OVERRIDE; | 28 virtual void RemoveExpiredFormElements() OVERRIDE; |
29 virtual void RemoveFormValueForElementName(const string16& name, | 29 virtual void RemoveFormValueForElementName(const string16& name, |
30 const string16& value) OVERRIDE; | 30 const string16& value) OVERRIDE; |
31 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; | 31 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; |
32 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; | 32 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... |
44 virtual void CancelRequest(Handle h) OVERRIDE; | 44 virtual void CancelRequest(Handle h) OVERRIDE; |
45 virtual content::NotificationSource GetNotificationSource() OVERRIDE; | 45 virtual content::NotificationSource GetNotificationSource() OVERRIDE; |
46 | 46 |
47 private: | 47 private: |
48 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataServiceImpl); | 48 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataServiceImpl); |
49 | 49 |
50 const scoped_refptr<WebDataService> service_; | 50 const scoped_refptr<WebDataService> service_; |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ | 53 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_WEB_DATA_SERVICE_IMPL_H_ |
OLD | NEW |