| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/base/sync_export.h" |
| 10 #include "sync/internal_api/public/base/model_type.h" | 11 #include "sync/internal_api/public/base/model_type.h" |
| 11 #include "sync/internal_api/public/base/node_ordinal.h" | 12 #include "sync/internal_api/public/base/node_ordinal.h" |
| 12 #include "sync/internal_api/public/util/immutable.h" | 13 #include "sync/internal_api/public/util/immutable.h" |
| 13 #include "sync/protocol/sync.pb.h" | 14 #include "sync/protocol/sync.pb.h" |
| 14 #include "sync/syncable/metahandle_set.h" | 15 #include "sync/syncable/metahandle_set.h" |
| 15 #include "sync/syncable/syncable_id.h" | 16 #include "sync/syncable/syncable_id.h" |
| 16 #include "sync/util/time.h" | 17 #include "sync/util/time.h" |
| 17 | 18 |
| 18 namespace syncer { | 19 namespace syncer { |
| 19 | 20 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 SYNCING = BIT_TEMPS_BEGIN, | 168 SYNCING = BIT_TEMPS_BEGIN, |
| 168 BIT_TEMPS_END, | 169 BIT_TEMPS_END, |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 enum { | 172 enum { |
| 172 BIT_TEMPS_COUNT = BIT_TEMPS_END - BIT_TEMPS_BEGIN | 173 BIT_TEMPS_COUNT = BIT_TEMPS_END - BIT_TEMPS_BEGIN |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 | 176 |
| 176 | 177 |
| 177 struct EntryKernel { | 178 struct SYNC_EXPORT_PRIVATE EntryKernel { |
| 178 private: | 179 private: |
| 179 std::string string_fields[STRING_FIELDS_COUNT]; | 180 std::string string_fields[STRING_FIELDS_COUNT]; |
| 180 sync_pb::EntitySpecifics specifics_fields[PROTO_FIELDS_COUNT]; | 181 sync_pb::EntitySpecifics specifics_fields[PROTO_FIELDS_COUNT]; |
| 181 int64 int64_fields[INT64_FIELDS_COUNT]; | 182 int64 int64_fields[INT64_FIELDS_COUNT]; |
| 182 base::Time time_fields[TIME_FIELDS_COUNT]; | 183 base::Time time_fields[TIME_FIELDS_COUNT]; |
| 183 Id id_fields[ID_FIELDS_COUNT]; | 184 Id id_fields[ID_FIELDS_COUNT]; |
| 184 NodeOrdinal ordinal_fields[ORDINAL_FIELDS_COUNT]; | 185 NodeOrdinal ordinal_fields[ORDINAL_FIELDS_COUNT]; |
| 185 std::bitset<BIT_FIELDS_COUNT> bit_fields; | 186 std::bitset<BIT_FIELDS_COUNT> bit_fields; |
| 186 std::bitset<BIT_TEMPS_COUNT> bit_temps; | 187 std::bitset<BIT_TEMPS_COUNT> bit_temps; |
| 187 | 188 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 const EntryKernelMutation& mutation); | 336 const EntryKernelMutation& mutation); |
| 336 | 337 |
| 337 // Caller owns the return value. | 338 // Caller owns the return value. |
| 338 base::ListValue* EntryKernelMutationMapToValue( | 339 base::ListValue* EntryKernelMutationMapToValue( |
| 339 const EntryKernelMutationMap& mutations); | 340 const EntryKernelMutationMap& mutations); |
| 340 | 341 |
| 341 } // namespace syncable | 342 } // namespace syncable |
| 342 } // namespace syncer | 343 } // namespace syncer |
| 343 | 344 |
| 344 #endif // SYNC_SYNCABLE_ENTRY_KERNEL_H_ | 345 #endif // SYNC_SYNCABLE_ENTRY_KERNEL_H_ |
| OLD | NEW |