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 #include "chrome/browser/webdata/autofill_web_data_service_impl.h" | 5 #include "chrome/browser/webdata/autofill_web_data_service_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/webdata/web_data_service.h" | 8 #include "chrome/browser/webdata/web_data_service.h" |
9 | 9 |
10 AutofillWebDataServiceImpl::AutofillWebDataServiceImpl( | 10 AutofillWebDataServiceImpl::AutofillWebDataServiceImpl( |
11 scoped_refptr<WebDataService> service) | 11 scoped_refptr<WebDataService> service) |
12 : service_(service) { | 12 : service_(service) { |
13 DCHECK(service.get()); | 13 DCHECK(service.get()); |
14 } | 14 } |
15 | 15 |
16 AutofillWebDataServiceImpl::~AutofillWebDataServiceImpl() { | 16 AutofillWebDataServiceImpl::~AutofillWebDataServiceImpl() { |
17 } | 17 } |
18 | 18 |
19 void AutofillWebDataServiceImpl::AddFormFields( | 19 void AutofillWebDataServiceImpl::AddFormFields( |
20 const std::vector<webkit::forms::FormField>& fields) { | 20 const std::vector<FormFieldData>& fields) { |
21 service_->AddFormFields(fields); | 21 service_->AddFormFields(fields); |
22 } | 22 } |
23 | 23 |
24 WebDataServiceBase::Handle | 24 WebDataServiceBase::Handle |
25 AutofillWebDataServiceImpl::GetFormValuesForElementName( | 25 AutofillWebDataServiceImpl::GetFormValuesForElementName( |
26 const string16& name, | 26 const string16& name, |
27 const string16& prefix, | 27 const string16& prefix, |
28 int limit, | 28 int limit, |
29 WebDataServiceConsumer* consumer) { | 29 WebDataServiceConsumer* consumer) { |
30 return service_->GetFormValuesForElementName(name, prefix, limit, consumer); | 30 return service_->GetFormValuesForElementName(name, prefix, limit, consumer); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 void AutofillWebDataServiceImpl::CancelRequest(Handle h) { | 84 void AutofillWebDataServiceImpl::CancelRequest(Handle h) { |
85 service_->CancelRequest(h); | 85 service_->CancelRequest(h); |
86 } | 86 } |
87 | 87 |
88 content::NotificationSource | 88 content::NotificationSource |
89 AutofillWebDataServiceImpl::GetNotificationSource() { | 89 AutofillWebDataServiceImpl::GetNotificationSource() { |
90 return service_->GetNotificationSource(); | 90 return service_->GetNotificationSource(); |
91 } | 91 } |
OLD | NEW |