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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sync/syncable/write_transaction.cc ('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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_ 5 #ifndef SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_
6 #define SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_ 6 #define SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include "sync/syncable/base_transaction.h" 9 #include "sync/syncable/base_transaction.h"
10 #include "sync/syncable/entry_kernel.h" 10 #include "sync/syncable/entry_kernel.h"
11 11
12 namespace syncer {
12 namespace syncable { 13 namespace syncable {
13 14
14 // A struct describing the changes made during a transaction. 15 // A struct describing the changes made during a transaction.
15 struct WriteTransactionInfo { 16 struct WriteTransactionInfo {
16 WriteTransactionInfo(int64 id, 17 WriteTransactionInfo(int64 id,
17 tracked_objects::Location location, 18 tracked_objects::Location location,
18 WriterTag writer, 19 WriterTag writer,
19 ImmutableEntryKernelMutationMap mutations); 20 ImmutableEntryKernelMutationMap mutations);
20 WriteTransactionInfo(); 21 WriteTransactionInfo();
21 ~WriteTransactionInfo(); 22 ~WriteTransactionInfo();
22 23
23 // Caller owns the return value. 24 // Caller owns the return value.
24 base::DictionaryValue* ToValue(size_t max_mutations_size) const; 25 base::DictionaryValue* ToValue(size_t max_mutations_size) const;
25 26
26 int64 id; 27 int64 id;
27 // If tracked_objects::Location becomes assignable, we can use that 28 // If tracked_objects::Location becomes assignable, we can use that
28 // instead. 29 // instead.
29 std::string location_string; 30 std::string location_string;
30 WriterTag writer; 31 WriterTag writer;
31 ImmutableEntryKernelMutationMap mutations; 32 ImmutableEntryKernelMutationMap mutations;
32 }; 33 };
33 34
34 typedef 35 typedef
35 syncer::Immutable<WriteTransactionInfo> 36 syncer::Immutable<WriteTransactionInfo>
36 ImmutableWriteTransactionInfo; 37 ImmutableWriteTransactionInfo;
37 38
38 } // namespace syncable 39 } // namespace syncable
40 } // namespace syncer
39 41
40 #endif // SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_ 42 #endif // SYNC_SYNCABLE_WRITE_TRANSACTION_INFO_H_
OLDNEW
« no previous file with comments | « sync/syncable/write_transaction.cc ('k') | sync/syncable/write_transaction_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698