1// Copyright 2012 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.
4
5#ifndef SYNC_ENGINE_APPLY_CONTROL_DATA_UPDATES_H_
6#define SYNC_ENGINE_APPLY_CONTROL_DATA_UPDATES_H_
7
8#include "sync/base/sync_export.h"
9
10namespace syncer {
11
12class Cryptographer;
13
14namespace sessions {
15class SyncSession;
16}
17
18namespace syncable {
19class Directory;
20class MutableEntry;
21class WriteTransaction;
22}
23
24SYNC_EXPORT_PRIVATE void ApplyControlDataUpdates(
25    sessions::SyncSession* session);
26void ApplyNigoriUpdate(syncable::WriteTransaction* trans,
27                       syncable::MutableEntry* const entry,
28                       Cryptographer* cryptographer);
29void ApplyControlUpdate(syncable::WriteTransaction* const trans,
30                        syncable::MutableEntry* const entry,
31                        Cryptographer* cryptographer);
32
33}  // namespace syncer
34
35#endif  // SYNC_ENGINE_APPLY_CONTROL_DATA_UPDATES_H_
36