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_PROCESS_UPDATES_UTIL_H_ | 5 #ifndef SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_ |
6 #define SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_ | 6 #define SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "sync/internal_api/public/base/model_type.h" | 12 #include "sync/internal_api/public/base/model_type.h" |
11 | 13 |
12 namespace sync_pb { | 14 namespace sync_pb { |
13 class SyncEntity; | 15 class SyncEntity; |
14 } | 16 } |
15 | 17 |
16 namespace syncer { | 18 namespace syncer { |
17 | 19 |
(...skipping 17 matching lines...) Expand all Loading... |
35 ModelType type, | 37 ModelType type, |
36 const SyncEntityList& applicable_updates, | 38 const SyncEntityList& applicable_updates, |
37 sessions::StatusController* status, | 39 sessions::StatusController* status, |
38 UpdateCounters* counters); | 40 UpdateCounters* counters); |
39 | 41 |
40 // Tombstones all entries of |type| whose versions are older than | 42 // Tombstones all entries of |type| whose versions are older than |
41 // |version_watermark| unless they are type root or unsynced/unapplied. | 43 // |version_watermark| unless they are type root or unsynced/unapplied. |
42 void ExpireEntriesByVersion(syncable::Directory* dir, | 44 void ExpireEntriesByVersion(syncable::Directory* dir, |
43 syncable::ModelNeutralWriteTransaction* trans, | 45 syncable::ModelNeutralWriteTransaction* trans, |
44 ModelType type, | 46 ModelType type, |
45 int64 version_watermark); | 47 int64_t version_watermark); |
46 | 48 |
47 } // namespace syncer | 49 } // namespace syncer |
48 | 50 |
49 #endif // SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_ | 51 #endif // SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_ |
OLD | NEW |