| 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_DIRECTORY_UPDATE_HANDLER_H_ | 5 #ifndef SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ |
| 6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ | 6 #define SYNC_ENGINE_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Its type must match this update handler's type. | 84 // Its type must match this update handler's type. |
| 85 void UpdateProgressMarker( | 85 void UpdateProgressMarker( |
| 86 const sync_pb::DataTypeProgressMarker& progress_marker); | 86 const sync_pb::DataTypeProgressMarker& progress_marker); |
| 87 | 87 |
| 88 bool IsValidProgressMarker( | 88 bool IsValidProgressMarker( |
| 89 const sync_pb::DataTypeProgressMarker& progress_marker) const; | 89 const sync_pb::DataTypeProgressMarker& progress_marker) const; |
| 90 | 90 |
| 91 // Skips all checks and goes straight to applying the updates. | 91 // Skips all checks and goes straight to applying the updates. |
| 92 SyncerError ApplyUpdatesImpl(sessions::StatusController* status); | 92 SyncerError ApplyUpdatesImpl(sessions::StatusController* status); |
| 93 | 93 |
| 94 // Creates root node for the handled model type. |
| 95 void CreateTypeRoot(syncable::ModelNeutralWriteTransaction* trans); |
| 96 |
| 94 syncable::Directory* dir_; | 97 syncable::Directory* dir_; |
| 95 ModelType type_; | 98 ModelType type_; |
| 96 scoped_refptr<ModelSafeWorker> worker_; | 99 scoped_refptr<ModelSafeWorker> worker_; |
| 97 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; | 100 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; |
| 98 | 101 |
| 99 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; | 102 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; |
| 100 | 103 |
| 101 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); | 104 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 } // namespace syncer | 107 } // namespace syncer |
| 105 | 108 |
| 106 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ | 109 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ |
| OLD | NEW |