forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrite_transaction_info.h
41 lines (32 loc) · 1.2 KB
/
write_transaction_info.h
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
38
39
40
41
// Copyright (c) 2012 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_WRITE_TRANSACTION_INFO_H_
#define SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_
#include "sync/syncable/base_transaction.h"
#include "sync/syncable/entry_kernel.h"
namespace syncer {
namespace syncable {
// A struct describing the changes made during a transaction.
struct WriteTransactionInfo {
WriteTransactionInfo(int64 id,
tracked_objects::Location location,
WriterTag writer,
ImmutableEntryKernelMutationMap mutations);
WriteTransactionInfo();
~WriteTransactionInfo();
// Caller owns the return value.
base::DictionaryValue* ToValue(size_t max_mutations_size) const;
int64 id;
// If tracked_objects::Location becomes assignable, we can use that
// instead.
std::string location_string;
WriterTag writer;
ImmutableEntryKernelMutationMap mutations;
};
typedef
syncer::Immutable<WriteTransactionInfo>
ImmutableWriteTransactionInfo;
} // namespace syncable
} // namespace syncer
#endif // SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_