Index: chrome/browser/sync/glue/sync_backend_host.h |
diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h |
index f49e05d4f20da99bb12d063501559d94fb1619be..68072e0090ff26129acf84548f44f98c8b615649 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host.h |
+++ b/chrome/browser/sync/glue/sync_backend_host.h |
@@ -43,8 +43,6 @@ class ChangeProcessor; |
class ChromeSyncNotificationBridge; |
struct Experiments; |
class InvalidatorStorage; |
-class JsBackend; |
-class JsEventHandler; |
class SyncBackendRegistrar; |
class SyncPrefs; |
@@ -170,7 +168,6 @@ class SyncBackendHost : public BackendDataTypeConfigurer { |
SyncFrontend* frontend, |
const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
const GURL& service_url, |
- syncer::ModelTypeSet initial_types, |
const syncer::SyncCredentials& credentials, |
bool delete_sync_data_folder, |
syncer::SyncManagerFactory* sync_manager_factory, |
@@ -250,6 +247,9 @@ class SyncBackendHost : public BackendDataTypeConfigurer { |
// for creating transactions. |
syncer::UserShare* GetUserShare() const; |
+ // Same as the above function, but bypasses a few sanity checks. |
+ syncer::UserShare* GetUserShareForTest() const; |
+ |
// Called from any thread to obtain current status information in detailed or |
// summarized form. |
Status GetDetailedStatus(); |
@@ -345,6 +345,11 @@ class SyncBackendHost : public BackendDataTypeConfigurer { |
const syncer::ModelTypeSet configured_types, |
const base::Callback<void(syncer::ModelTypeSet)>& ready_task); |
+ // Called when the SyncManager has been constructed and initialized. |
+ virtual void HandleSyncManagerInitializationOnFrontendLoop( |
+ const syncer::WeakHandle<syncer::JsBackend>& js_backend, bool success, |
+ syncer::ModelTypeSet restored_types); |
+ |
private: |
// The real guts of SyncBackendHost, to keep the public client API clean. |
class Core; |