| Index: components/sync_driver/sync_client.h
|
| diff --git a/components/sync_driver/sync_client.h b/components/sync_driver/sync_client.h
|
| index fda584dd0cdc6fb64ada9b97545d938096ea3d3f..5f44d1de7815f02b99e2019b4d6e98e69e0a9af0 100644
|
| --- a/components/sync_driver/sync_client.h
|
| +++ b/components/sync_driver/sync_client.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/time/time.h"
|
| +#include "components/sync_driver/sync_api_component_factory.h"
|
| #include "sync/internal_api/public/base/model_type.h"
|
| #include "sync/internal_api/public/engine/model_safe_worker.h"
|
| #include "sync/util/extensions_activity.h"
|
| @@ -53,7 +54,6 @@ class SyncSessionsClient;
|
|
|
| namespace sync_driver {
|
|
|
| -class SyncApiComponentFactory;
|
| class SyncService;
|
|
|
| typedef base::Callback<void(base::Time, base::Time)> ClearBrowsingDataCallback;
|
| @@ -69,9 +69,7 @@ class SyncClient {
|
| SyncClient();
|
| virtual ~SyncClient();
|
|
|
| - // Initializes the sync client with the specified sync service. This will also
|
| - // register data type controllers with |service| (via
|
| - // SyncApiComponentFactory::RegisterDataTypes).
|
| + // Initializes the sync client with the specified sync service.
|
| virtual void Initialize(SyncService* service) = 0;
|
|
|
| // Returns the current SyncService instance.
|
| @@ -90,6 +88,11 @@ class SyncClient {
|
| // have browsing data cleared.
|
| virtual ClearBrowsingDataCallback GetClearBrowsingDataCallback() = 0;
|
|
|
| + // Returns a callback that will register the types specific to the current
|
| + // platform.
|
| + virtual sync_driver::SyncApiComponentFactory::RegisterDataTypesMethod
|
| + GetRegisterPlatformTypesCallback() = 0;
|
| +
|
| // Returns a callback that will be invoked when password sync state has
|
| // potentially been changed.
|
| virtual base::Closure GetPasswordStateChangedCallback() = 0;
|
|
|