summaryrefslogtreecommitdiffstats
path: root/components/webdata_services/web_data_service_wrapper.h
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2014-12-16 12:08:09 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-16 20:08:31 +0000
commitf8cf5be992c2e61f24a51d770b2461c557197213 (patch)
treedab40227106a44b0dda188c314e5c47a158b5509 /components/webdata_services/web_data_service_wrapper.h
parentb8135064c7535c42949a7e7e05962b78d87a5cdb (diff)
downloadchromium_src-f8cf5be992c2e61f24a51d770b2461c557197213.zip
chromium_src-f8cf5be992c2e61f24a51d770b2461c557197213.tar.gz
chromium_src-f8cf5be992c2e61f24a51d770b2461c557197213.tar.bz2
Componentize AutocompleteSyncableService
Move AutocompleteSyncableService into autofill component and fix the WebDataServiceWrapper initialization to start the syncable services since it can now depend on them. BUG=437508 Review URL: https://codereview.chromium.org/781793002 Cr-Commit-Position: refs/heads/master@{#308653}
Diffstat (limited to 'components/webdata_services/web_data_service_wrapper.h')
-rw-r--r--components/webdata_services/web_data_service_wrapper.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/components/webdata_services/web_data_service_wrapper.h b/components/webdata_services/web_data_service_wrapper.h
index 76f5693..d189e83 100644
--- a/components/webdata_services/web_data_service_wrapper.h
+++ b/components/webdata_services/web_data_service_wrapper.h
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "components/keyed_service/core/keyed_service.h"
#include "sql/init_status.h"
+#include "sync/api/syncable_service.h"
class KeywordWebDataService;
class TokenWebData;
@@ -46,10 +47,16 @@ class WebDataServiceWrapper : public KeyedService {
// Shows an error message if a loading error occurs.
using ShowErrorCallback = void (*)(ErrorType, sql::InitStatus);
- WebDataServiceWrapper(const base::FilePath& profile_path,
+ // Constructor for WebDataServiceWrapper that initializes the different
+ // WebDataServices and starts the synchronization services using |flare|.
+ // Since |flare| will be copied and called multiple times, it cannot bind
+ // values using base::Owned nor base::Passed; it should only bind simple or
+ // refcounted types.
+ WebDataServiceWrapper(const base::FilePath& context_path,
const std::string& application_locale,
const scoped_refptr<base::MessageLoopProxy>& ui_thread,
const scoped_refptr<base::MessageLoopProxy>& db_thread,
+ const syncer::SyncableService::StartSyncFlare& flare,
ShowErrorCallback show_error_callback);
~WebDataServiceWrapper() override;