| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GET_UPDATES_PROCESSOR_H | 5 #ifndef SYNC_ENGINE_GET_UPDATES_PROCESSOR_H |
| 6 #define SYNC_ENGINE_GET_UPDATES_PROCESSOR_H | 6 #define SYNC_ENGINE_GET_UPDATES_PROCESSOR_H |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace sessions { | 24 namespace sessions { |
| 25 class StatusController; | 25 class StatusController; |
| 26 } // namespace sessions | 26 } // namespace sessions |
| 27 | 27 |
| 28 namespace syncable { | 28 namespace syncable { |
| 29 class Directory; | 29 class Directory; |
| 30 } // namespace syncable | 30 } // namespace syncable |
| 31 | 31 |
| 32 class GetUpdatesDelegate; | 32 class GetUpdatesDelegate; |
| 33 class SyncDirectoryUpdateHandler; | |
| 34 | |
| 35 typedef std::vector<const sync_pb::SyncEntity*> SyncEntityList; | |
| 36 typedef std::map<ModelType, SyncEntityList> TypeSyncEntityMap; | |
| 37 | 33 |
| 38 // This class manages the set of per-type syncer objects. | 34 // This class manages the set of per-type syncer objects. |
| 39 // | 35 // |
| 40 // It owns these types and hides the details of iterating over all of them. | 36 // It owns these types and hides the details of iterating over all of them. |
| 41 // Most methods allow the caller to specify a subset of types on which the | 37 // Most methods allow the caller to specify a subset of types on which the |
| 42 // operation is to be applied. It is a logic error if the supplied set of types | 38 // operation is to be applied. It is a logic error if the supplied set of types |
| 43 // contains a type which was not previously registered with the manager. | 39 // contains a type which was not previously registered with the manager. |
| 44 class SYNC_EXPORT_PRIVATE GetUpdatesProcessor { | 40 class SYNC_EXPORT_PRIVATE GetUpdatesProcessor { |
| 45 public: | 41 public: |
| 46 explicit GetUpdatesProcessor(UpdateHandlerMap* update_handler_map, | 42 explicit GetUpdatesProcessor(UpdateHandlerMap* update_handler_map, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 67 UpdateHandlerMap* update_handler_map_; | 63 UpdateHandlerMap* update_handler_map_; |
| 68 | 64 |
| 69 const GetUpdatesDelegate& delegate_; | 65 const GetUpdatesDelegate& delegate_; |
| 70 | 66 |
| 71 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessor); | 67 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessor); |
| 72 }; | 68 }; |
| 73 | 69 |
| 74 } // namespace syncer | 70 } // namespace syncer |
| 75 | 71 |
| 76 #endif // SYNC_ENGINE_GET_UPDATES_PROCESSOR_H_ | 72 #endif // SYNC_ENGINE_GET_UPDATES_PROCESSOR_H_ |
| OLD | NEW |