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 #ifndef SYNC_SYNCABLE_ENTRY_KERNEL_H_ | 5 #ifndef SYNC_SYNCABLE_ENTRY_KERNEL_H_ |
6 #define SYNC_SYNCABLE_ENTRY_KERNEL_H_ | 6 #define SYNC_SYNCABLE_ENTRY_KERNEL_H_ |
7 | 7 |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "sync/internal_api/public/base/model_type.h" | 10 #include "sync/internal_api/public/base/model_type.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 enum BaseVersion { | 43 enum BaseVersion { |
44 // After initial upload, the version is controlled by the server, and is | 44 // After initial upload, the version is controlled by the server, and is |
45 // increased whenever the data or metadata changes on the server. | 45 // increased whenever the data or metadata changes on the server. |
46 BASE_VERSION = META_HANDLE + 1, | 46 BASE_VERSION = META_HANDLE + 1, |
47 }; | 47 }; |
48 | 48 |
49 enum Int64Field { | 49 enum Int64Field { |
50 SERVER_VERSION = BASE_VERSION + 1, | 50 SERVER_VERSION = BASE_VERSION + 1, |
51 LOCAL_EXTERNAL_ID, // ID of an item in the external local storage that this | 51 LOCAL_EXTERNAL_ID, // ID of an item in the external local storage that this |
52 // entry is associated with. (such as bookmarks.js) | 52 // entry is associated with. (such as bookmarks.js) |
| 53 TRANSACTION_VERSION, |
53 INT64_FIELDS_END | 54 INT64_FIELDS_END |
54 }; | 55 }; |
55 | 56 |
56 enum { | 57 enum { |
57 INT64_FIELDS_COUNT = INT64_FIELDS_END - INT64_FIELDS_BEGIN, | 58 INT64_FIELDS_COUNT = INT64_FIELDS_END - INT64_FIELDS_BEGIN, |
58 TIME_FIELDS_BEGIN = INT64_FIELDS_END, | 59 TIME_FIELDS_BEGIN = INT64_FIELDS_END, |
59 }; | 60 }; |
60 | 61 |
61 enum TimeField { | 62 enum TimeField { |
62 MTIME = TIME_FIELDS_BEGIN, | 63 MTIME = TIME_FIELDS_BEGIN, |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 const EntryKernelMutation& mutation); | 329 const EntryKernelMutation& mutation); |
329 | 330 |
330 // Caller owns the return value. | 331 // Caller owns the return value. |
331 base::ListValue* EntryKernelMutationMapToValue( | 332 base::ListValue* EntryKernelMutationMapToValue( |
332 const EntryKernelMutationMap& mutations); | 333 const EntryKernelMutationMap& mutations); |
333 | 334 |
334 } // namespace syncable | 335 } // namespace syncable |
335 } // namespace syncer | 336 } // namespace syncer |
336 | 337 |
337 #endif // SYNC_SYNCABLE_ENTRY_KERNEL_H_ | 338 #endif // SYNC_SYNCABLE_ENTRY_KERNEL_H_ |
OLD | NEW |