| 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 #include "sync/syncable/entry.h" | 5 #include "sync/syncable/entry.h" |
| 6 | 6 |
| 7 #include <iomanip> | 7 #include <iomanip> |
| 8 | 8 |
| 9 #include "base/json/string_escape.h" | 9 #include "base/json/string_escape.h" |
| 10 #include "sync/syncable/base_transaction.h" | |
| 11 #include "sync/syncable/blob.h" | 10 #include "sync/syncable/blob.h" |
| 12 #include "sync/syncable/directory.h" | 11 #include "sync/syncable/directory.h" |
| 12 #include "sync/syncable/syncable_base_transaction.h" |
| 13 #include "sync/syncable/syncable_columns.h" | 13 #include "sync/syncable/syncable_columns.h" |
| 14 | 14 |
| 15 using std::string; | 15 using std::string; |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 namespace syncable { | 18 namespace syncable { |
| 19 | 19 |
| 20 Entry::Entry(BaseTransaction* trans, GetById, const Id& id) | 20 Entry::Entry(BaseTransaction* trans, GetById, const Id& id) |
| 21 : basetrans_(trans) { | 21 : basetrans_(trans) { |
| 22 kernel_ = trans->directory()->GetEntryById(id); | 22 kernel_ = trans->directory()->GetEntryById(id); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 os << "TempFlags: "; | 142 os << "TempFlags: "; |
| 143 for ( ; i < BIT_TEMPS_END; ++i) { | 143 for ( ; i < BIT_TEMPS_END; ++i) { |
| 144 if (kernel->ref(static_cast<BitTemp>(i))) | 144 if (kernel->ref(static_cast<BitTemp>(i))) |
| 145 os << "#" << i - BIT_TEMPS_BEGIN << ", "; | 145 os << "#" << i - BIT_TEMPS_BEGIN << ", "; |
| 146 } | 146 } |
| 147 return os; | 147 return os; |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace syncable | 150 } // namespace syncable |
| 151 } // namespace syncer | 151 } // namespace syncer |
| OLD | NEW |