blob: 86dffc7c563c81b35394083d1d6deff5ed3d2290 (
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
37
|
// Copyright (c) 2011 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 CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
#define CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
#pragma once
#include "chrome/browser/sync/syncable/model_type.h"
#include "chrome/browser/sync/syncable/syncable.h"
namespace tracked_objects {
class Location;
} // namespace tracked_objects
namespace syncable {
class TransactionObserver {
public:
virtual void OnTransactionStart(
const tracked_objects::Location& location,
const WriterTag& writer) = 0;
virtual void OnTransactionMutate(
const tracked_objects::Location& location,
const WriterTag& writer,
const EntryKernelMutationSet& mutations,
const ModelTypeBitSet& models_with_changes) = 0;
virtual void OnTransactionEnd(
const tracked_objects::Location& location,
const WriterTag& writer) = 0;
protected:
virtual ~TransactionObserver() {}
};
} // namespace syncable
#endif // CHROME_BROWSER_SYNC_SYNCABLE_TRANSACTION_OBSERVER_H_
|