summaryrefslogtreecommitdiffstats
path: root/sync/syncable/syncable_base_write_transaction.h
blob: af1c3fef786d39361ec215bfffafcd32cb0ded3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SYNC_SYNCABLE_SYNCABLE_BASE_WRITE_TRANSACTION_H_
#define SYNC_SYNCABLE_SYNCABLE_BASE_WRITE_TRANSACTION_H_

#include "base/macros.h"
#include "sync/base/sync_export.h"
#include "sync/syncable/syncable_base_transaction.h"

namespace syncer {
namespace syncable {

// A base class shared by both ModelNeutralWriteTransaction and
// WriteTransaction.
class SYNC_EXPORT BaseWriteTransaction : public BaseTransaction {
 public:
  virtual void TrackChangesTo(const EntryKernel* entry) = 0;

 protected:
  BaseWriteTransaction(
      const tracked_objects::Location location,
      const char* name,
      WriterTag writer,
      Directory* directory);
  ~BaseWriteTransaction() override;

 private:
  DISALLOW_COPY_AND_ASSIGN(BaseWriteTransaction);
};

}  // namespace syncable
}  // namespace syncer

#endif  // SYNC_SYNCABLE_SYNCABLE_BASE_WRITE_TRANSACTION_H_