| 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/entry_kernel.h" | 5 #include "sync/syncable/entry_kernel.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/json/string_escape.h" | 10 #include "base/json/string_escape.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "sync/protocol/proto_value_conversions.h" | 12 #include "sync/protocol/proto_value_conversions.h" |
| 13 #include "sync/syncable/syncable_columns.h" | 13 #include "sync/syncable/syncable_columns.h" |
| 14 #include "sync/syncable/syncable_enum_conversions.h" | 14 #include "sync/syncable/syncable_enum_conversions.h" |
| 15 #include "sync/util/cryptographer.h" | 15 #include "sync/util/cryptographer.h" |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 namespace syncable { | 18 namespace syncable { |
| 19 | 19 |
| 20 EntryKernel::EntryKernel() : dirty_(false) { | 20 EntryKernel::EntryKernel() : dirty_(false), cached_size_(0) { |
| 21 // Everything else should already be default-initialized. | 21 // Everything else should already be default-initialized. |
| 22 for (int i = 0; i < INT64_FIELDS_COUNT; ++i) { | 22 for (int i = 0; i < INT64_FIELDS_COUNT; ++i) { |
| 23 int64_fields[i] = 0; | 23 int64_fields[i] = 0; |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 | 26 |
| 27 EntryKernel::EntryKernel(const EntryKernel& other) = default; | 27 EntryKernel::EntryKernel(const EntryKernel& other) = default; |
| 28 | 28 |
| 29 EntryKernel::~EntryKernel() {} | 29 EntryKernel::~EntryKernel() {} |
| 30 | 30 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 os << "TempFlags: "; | 287 os << "TempFlags: "; |
| 288 for (; i < BIT_TEMPS_END; ++i) { | 288 for (; i < BIT_TEMPS_END; ++i) { |
| 289 if (kernel->ref(static_cast<BitTemp>(i))) | 289 if (kernel->ref(static_cast<BitTemp>(i))) |
| 290 os << "#" << i - BIT_TEMPS_BEGIN << ", "; | 290 os << "#" << i - BIT_TEMPS_BEGIN << ", "; |
| 291 } | 291 } |
| 292 return os; | 292 return os; |
| 293 } | 293 } |
| 294 | 294 |
| 295 } // namespace syncable | 295 } // namespace syncable |
| 296 } // namespace syncer | 296 } // namespace syncer |
| OLD | NEW |