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

Unified Diff: sync/internal_api/sync_manager_impl.h

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + address comments Created 6 years, 11 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: sync/internal_api/sync_manager_impl.h
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index ed758bc0b9959b4bc17e04df24edb82b3e217cab..c793b1833139ee7e1da832715a22dc3e20eb3f83 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -34,6 +34,7 @@ namespace syncer {
class SyncAPIServerConnectionManager;
class WriteNode;
class WriteTransaction;
+class ModelTypeRegistry;
Nicolas Zea 2014/01/16 21:08:26 nit: abc order
rlarocque 2014/01/16 21:51:29 Done.
namespace sessions {
class SyncSessionContext;
@@ -314,6 +315,10 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
// client (the Syncer) and the sync server.
scoped_ptr<SyncAPIServerConnectionManager> connection_manager_;
+ // Maintains state that affects the way we interact with different sync types.
+ // This state changes when entering or exiting a configuration cycle.
+ scoped_ptr<ModelTypeRegistry> model_type_registry_;
+
// A container of various bits of information used by the SyncScheduler to
// create SyncSessions. Must outlive the SyncScheduler.
scoped_ptr<sessions::SyncSessionContext> session_context_;

Powered by Google App Engine
This is Rietveld 408576698