OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |