[Extensions Toolbar] Make all extensions that want to run have enabled buttons
[chromium-blink-merge.git] / sync / engine / process_updates_util.h
blob9564d86ff996f501fd8a77880ef38ce662f89317
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
3 // found in the LICENSE file.
5 #ifndef SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_
6 #define SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_
8 #include <vector>
10 #include "sync/internal_api/public/base/model_type.h"
12 namespace sync_pb {
13 class SyncEntity;
16 namespace syncer {
18 namespace sessions {
19 class StatusController;
22 namespace syncable {
23 class ModelNeutralWriteTransaction;
24 class Directory;
27 struct UpdateCounters;
29 typedef std::vector<const sync_pb::SyncEntity*> SyncEntityList;
31 // Processes all the updates associated with a single ModelType.
32 void ProcessDownloadedUpdates(
33 syncable::Directory* dir,
34 syncable::ModelNeutralWriteTransaction* trans,
35 ModelType type,
36 const SyncEntityList& applicable_updates,
37 sessions::StatusController* status,
38 UpdateCounters* counters);
40 // Tombstones all entries of |type| whose versions are older than
41 // |version_watermark| unless they are type root or unsynced/unapplied.
42 void ExpireEntriesByVersion(syncable::Directory* dir,
43 syncable::ModelNeutralWriteTransaction* trans,
44 ModelType type,
45 int64 version_watermark);
47 } // namespace syncer
49 #endif // SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_