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

Side by Side Diff: sync/engine/sync_directory_update_handler.h

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_ENGINE_SYNC_DIRECTORY_UPDATE_HANDLER_H_ 5 #ifndef SYNC_ENGINE_SYNC_DIRECTORY_UPDATE_HANDLER_H_
6 #define SYNC_ENGINE_SYNC_DIRECTORY_UPDATE_HANDLER_H_ 6 #define SYNC_ENGINE_SYNC_DIRECTORY_UPDATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Skips all checks and goes straight to applying the updates. 82 // Skips all checks and goes straight to applying the updates.
83 SyncerError ApplyUpdatesImpl(sessions::StatusController* status); 83 SyncerError ApplyUpdatesImpl(sessions::StatusController* status);
84 84
85 syncable::Directory* dir_; 85 syncable::Directory* dir_;
86 ModelType type_; 86 ModelType type_;
87 scoped_refptr<ModelSafeWorker> worker_; 87 scoped_refptr<ModelSafeWorker> worker_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(SyncDirectoryUpdateHandler); 89 DISALLOW_COPY_AND_ASSIGN(SyncDirectoryUpdateHandler);
90 }; 90 };
91 91
92 // TODO(rlarocque): Find a better place to define this.
93 typedef std::map<ModelType, SyncDirectoryUpdateHandler*> UpdateHandlerMap;
94
95 } // namespace syncer 92 } // namespace syncer
96 93
97 #endif // SYNC_ENGINE_SYNC_DIRECTORY_UPDATE_HANDLER_H_ 94 #endif // SYNC_ENGINE_SYNC_DIRECTORY_UPDATE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698