OLD | NEW |
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 #include "sync/syncable/write_transaction_info.h" | 5 #include "sync/syncable/write_transaction_info.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
8 | 11 |
9 namespace syncer { | 12 namespace syncer { |
10 namespace syncable { | 13 namespace syncable { |
11 | 14 |
12 WriteTransactionInfo::WriteTransactionInfo( | 15 WriteTransactionInfo::WriteTransactionInfo( |
13 int64 id, | 16 int64_t id, |
14 tracked_objects::Location location, | 17 tracked_objects::Location location, |
15 WriterTag writer, | 18 WriterTag writer, |
16 ImmutableEntryKernelMutationMap mutations) | 19 ImmutableEntryKernelMutationMap mutations) |
17 : id(id), | 20 : id(id), |
18 location_string(location.ToString()), | 21 location_string(location.ToString()), |
19 writer(writer), | 22 writer(writer), |
20 mutations(mutations) {} | 23 mutations(mutations) {} |
21 | 24 |
22 WriteTransactionInfo::WriteTransactionInfo() | 25 WriteTransactionInfo::WriteTransactionInfo() |
23 : id(-1), writer(INVALID) {} | 26 : id(-1), writer(INVALID) {} |
(...skipping 14 matching lines...) Expand all Loading... |
38 mutations_value = | 41 mutations_value = |
39 new base::StringValue( | 42 new base::StringValue( |
40 base::SizeTToString(mutations_size) + " mutations"); | 43 base::SizeTToString(mutations_size) + " mutations"); |
41 } | 44 } |
42 dict->Set("mutations", mutations_value); | 45 dict->Set("mutations", mutations_value); |
43 return dict; | 46 return dict; |
44 } | 47 } |
45 | 48 |
46 } // namespace syncable | 49 } // namespace syncable |
47 } // namespace syncer | 50 } // namespace syncer |
OLD | NEW |