Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments and Indents Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698