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

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: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 eb362e79384114e824ebdfb92499a122ebf72a03..a4b651b796809432d0bcf5da0f71521cbfb2a0c1 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,
@@ -246,8 +243,9 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
// Deactivates change processing for the given data type.
void DeactivateDataType(syncer::ModelType type);
- // Called on |frontend_loop_| to obtain a handle to the UserShare needed
- // for creating transactions.
+ // Called on |frontend_loop_| to obtain a handle to the UserShare needed for
+ // creating transactions. Should not be called before we signal
+ // initialization is complete with OnBackendInitialized().
syncer::UserShare* GetUserShare() const;
// Called from any thread to obtain current status information in detailed or
@@ -344,6 +342,11 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
const syncer::ModelTypeSet failed_configuration_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;
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698