| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/webdata_services/web_data_service_wrapper.h" | 5 #include "components/webdata_services/web_data_service_wrapper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" | 11 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" |
| 12 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 12 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
| 13 #include "components/autofill/core/browser/webdata/autofill_table.h" | 13 #include "components/autofill/core/browser/webdata/autofill_table.h" |
| 14 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync
able_service.h" | |
| 15 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" | 14 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" |
| 16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 15 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 17 #include "components/password_manager/core/browser/webdata/logins_table.h" | 16 #include "components/password_manager/core/browser/webdata/logins_table.h" |
| 18 #include "components/search_engines/keyword_table.h" | 17 #include "components/search_engines/keyword_table.h" |
| 19 #include "components/search_engines/keyword_web_data_service.h" | 18 #include "components/search_engines/keyword_web_data_service.h" |
| 20 #include "components/signin/core/browser/webdata/token_service_table.h" | 19 #include "components/signin/core/browser/webdata/token_service_table.h" |
| 21 #include "components/signin/core/browser/webdata/token_web_data.h" | 20 #include "components/signin/core/browser/webdata/token_web_data.h" |
| 22 #include "components/webdata/common/web_database_service.h" | 21 #include "components/webdata/common/web_database_service.h" |
| 23 #include "components/webdata/common/webdata_constants.h" | 22 #include "components/webdata/common/webdata_constants.h" |
| 24 | 23 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 41 // all the database data should migrate to this API over time. | 40 // all the database data should migrate to this API over time. |
| 42 autofill::AutocompleteSyncableService::CreateForWebDataServiceAndBackend( | 41 autofill::AutocompleteSyncableService::CreateForWebDataServiceAndBackend( |
| 43 autofill_web_data.get(), autofill_backend); | 42 autofill_web_data.get(), autofill_backend); |
| 44 autofill::AutocompleteSyncableService::FromWebDataService( | 43 autofill::AutocompleteSyncableService::FromWebDataService( |
| 45 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); | 44 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); |
| 46 | 45 |
| 47 autofill::AutofillProfileSyncableService::CreateForWebDataServiceAndBackend( | 46 autofill::AutofillProfileSyncableService::CreateForWebDataServiceAndBackend( |
| 48 autofill_web_data.get(), autofill_backend, app_locale); | 47 autofill_web_data.get(), autofill_backend, app_locale); |
| 49 autofill::AutofillWalletSyncableService::CreateForWebDataServiceAndBackend( | 48 autofill::AutofillWalletSyncableService::CreateForWebDataServiceAndBackend( |
| 50 autofill_web_data.get(), autofill_backend, app_locale); | 49 autofill_web_data.get(), autofill_backend, app_locale); |
| 51 autofill::AutofillWalletMetadataSyncableService:: | |
| 52 CreateForWebDataServiceAndBackend(autofill_web_data.get(), | |
| 53 autofill_backend, app_locale); | |
| 54 | 50 |
| 55 autofill::AutofillProfileSyncableService::FromWebDataService( | 51 autofill::AutofillProfileSyncableService::FromWebDataService( |
| 56 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); | 52 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); |
| 57 autofill::AutofillWalletSyncableService::FromWebDataService( | 53 autofill::AutofillWalletSyncableService::FromWebDataService( |
| 58 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); | 54 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); |
| 59 } | 55 } |
| 60 | 56 |
| 61 } // namespace | 57 } // namespace |
| 62 | 58 |
| 63 WebDataServiceWrapper::WebDataServiceWrapper() { | 59 WebDataServiceWrapper::WebDataServiceWrapper() { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 scoped_refptr<TokenWebData> WebDataServiceWrapper::GetTokenWebData() { | 137 scoped_refptr<TokenWebData> WebDataServiceWrapper::GetTokenWebData() { |
| 142 return token_web_data_.get(); | 138 return token_web_data_.get(); |
| 143 } | 139 } |
| 144 | 140 |
| 145 #if defined(OS_WIN) | 141 #if defined(OS_WIN) |
| 146 scoped_refptr<PasswordWebDataService> | 142 scoped_refptr<PasswordWebDataService> |
| 147 WebDataServiceWrapper::GetPasswordWebData() { | 143 WebDataServiceWrapper::GetPasswordWebData() { |
| 148 return password_web_data_.get(); | 144 return password_web_data_.get(); |
| 149 } | 145 } |
| 150 #endif | 146 #endif |
| OLD | NEW |