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

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

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 years, 3 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 f632c16d9c27dfa9b5f70b680ecb680fa5459f4a..85498355802aa95c5bc4954f307c4c14ed4b62e8 100644
--- a/chrome/browser/sync/glue/sync_backend_host.h
+++ b/chrome/browser/sync/glue/sync_backend_host.h
@@ -365,17 +365,18 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
// An enum representing the steps to initializing the SyncBackendHost.
enum InitializationState {
NOT_ATTEMPTED,
- CREATING_SYNC_MANAGER, // We're waiting for the first callback from the
- // sync thread to inform us that the sync manager
- // has been created.
- NOT_INITIALIZED, // Initialization hasn't completed, but we've
- // constructed a SyncManager.
- DOWNLOADING_NIGORI, // The SyncManager is initialized, but
- // we're fetching sync encryption information.
- ASSOCIATING_NIGORI, // The SyncManager is initialized, and we
- // have the sync encryption information, but we
- // have to update the local encryption state.
- INITIALIZED, // Initialization is complete.
+ CREATING_SYNC_MANAGER, // We're waiting for the first callback from the
+ // sync thread to inform us that the sync
+ // manager has been created.
+ NOT_INITIALIZED, // Initialization hasn't completed, but we've
+ // constructed a SyncManager.
+ DOWNLOADING_CONTROL_TYPES, // The SyncManager is initialized, but
+ // we're fetching metadata, such as encryption
+ // information, from the server.
+ PROCESSING_CONTROL_TYPES, // Running init tasks that require metadata to
+ // be available. This includes registering our
+ // device information and refreshing encryption.
+ INITIALIZED, // Initialization is complete.
};
// Checks if we have received a notice to turn on experimental datatypes
@@ -476,6 +477,10 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
// initialization is done yet.
void StopSyncManagerForShutdown(const base::Closure& closure);
+ // Must be called on |frontend_loop_|. |done_callback| is called on
+ // |frontend_loop_|.
+ void InitialProcessControlTypes(const base::Closure& done_callback);
+
base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_;
// A thread where all the sync operations happen.

Powered by Google App Engine
This is Rietveld 408576698