Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: sync/syncable/write_transaction_info.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/syncable/transaction_observer.h ('k') | sync/syncable/write_transaction_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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_SYNCABLE_WRITE_TRANSACTION_INFO_H_
6 #define SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include <string>
12
13 #include "sync/syncable/entry_kernel.h"
14 #include "sync/syncable/syncable_base_transaction.h"
15
16 namespace syncer {
17 namespace syncable {
18
19 // A struct describing the changes made during a transaction.
20 struct WriteTransactionInfo {
21 WriteTransactionInfo(int64_t id,
22 tracked_objects::Location location,
23 WriterTag writer,
24 ImmutableEntryKernelMutationMap mutations);
25 WriteTransactionInfo();
26 WriteTransactionInfo(const WriteTransactionInfo& other);
27 ~WriteTransactionInfo();
28
29 // Caller owns the return value.
30 base::DictionaryValue* ToValue(size_t max_mutations_size) const;
31
32 int64_t id;
33 // If tracked_objects::Location becomes assignable, we can use that
34 // instead.
35 std::string location_string;
36 WriterTag writer;
37 ImmutableEntryKernelMutationMap mutations;
38 };
39
40 typedef
41 Immutable<WriteTransactionInfo>
42 ImmutableWriteTransactionInfo;
43
44 } // namespace syncable
45 } // namespace syncer
46
47 #endif // SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_
OLDNEW
« no previous file with comments | « sync/syncable/transaction_observer.h ('k') | sync/syncable/write_transaction_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698