| 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 AutofillWebDataService::AutofillWebDataService() |
| 11 : WebDataServiceBase(WebDataServiceBase::ProfileErrorCallback()) { |
| 12 } |
| 13 |
| 10 AutofillWebDataServiceImpl::AutofillWebDataServiceImpl( | 14 AutofillWebDataServiceImpl::AutofillWebDataServiceImpl( |
| 11 scoped_refptr<WebDataService> service) | 15 scoped_refptr<WebDataService> service) |
| 12 : service_(service) { | 16 : service_(service) { |
| 13 DCHECK(service.get()); | 17 DCHECK(service.get()); |
| 14 } | 18 } |
| 15 | 19 |
| 16 AutofillWebDataServiceImpl::~AutofillWebDataServiceImpl() { | 20 AutofillWebDataServiceImpl::~AutofillWebDataServiceImpl() { |
| 17 } | 21 } |
| 18 | 22 |
| 19 void AutofillWebDataServiceImpl::AddFormFields( | 23 void AutofillWebDataServiceImpl::AddFormFields( |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 82 } |
| 79 | 83 |
| 80 void AutofillWebDataServiceImpl::CancelRequest(Handle h) { | 84 void AutofillWebDataServiceImpl::CancelRequest(Handle h) { |
| 81 service_->CancelRequest(h); | 85 service_->CancelRequest(h); |
| 82 } | 86 } |
| 83 | 87 |
| 84 content::NotificationSource | 88 content::NotificationSource |
| 85 AutofillWebDataServiceImpl::GetNotificationSource() { | 89 AutofillWebDataServiceImpl::GetNotificationSource() { |
| 86 return service_->GetNotificationSource(); | 90 return service_->GetNotificationSource(); |
| 87 } | 91 } |
| 92 |
| 93 bool AutofillWebDataServiceImpl::IsDatabaseLoaded() { |
| 94 return service_->IsDatabaseLoaded(); |
| 95 } |
| 96 |
| 97 WebDatabase* AutofillWebDataServiceImpl::GetDatabase() { |
| 98 return service_->GetDatabase(); |
| 99 } |
| OLD | NEW |