Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: sync/syncable/entry.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/syncable/entry.h ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.h" 5 #include "sync/syncable/entry.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "net/base/escape.h" 9 #include "net/base/escape.h"
10 #include "sync/syncable/base_transaction.h" 10 #include "sync/syncable/base_transaction.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 std::ostream& operator<<(std::ostream& os, const Entry& entry) { 104 std::ostream& operator<<(std::ostream& os, const Entry& entry) {
105 int i; 105 int i;
106 EntryKernel* const kernel = entry.kernel_; 106 EntryKernel* const kernel = entry.kernel_;
107 for (i = BEGIN_FIELDS; i < INT64_FIELDS_END; ++i) { 107 for (i = BEGIN_FIELDS; i < INT64_FIELDS_END; ++i) {
108 os << g_metas_columns[i].name << ": " 108 os << g_metas_columns[i].name << ": "
109 << kernel->ref(static_cast<Int64Field>(i)) << ", "; 109 << kernel->ref(static_cast<Int64Field>(i)) << ", ";
110 } 110 }
111 for ( ; i < TIME_FIELDS_END; ++i) { 111 for ( ; i < TIME_FIELDS_END; ++i) {
112 os << g_metas_columns[i].name << ": " 112 os << g_metas_columns[i].name << ": "
113 << csync::GetTimeDebugString( 113 << syncer::GetTimeDebugString(
114 kernel->ref(static_cast<TimeField>(i))) << ", "; 114 kernel->ref(static_cast<TimeField>(i))) << ", ";
115 } 115 }
116 for ( ; i < ID_FIELDS_END; ++i) { 116 for ( ; i < ID_FIELDS_END; ++i) {
117 os << g_metas_columns[i].name << ": " 117 os << g_metas_columns[i].name << ": "
118 << kernel->ref(static_cast<IdField>(i)) << ", "; 118 << kernel->ref(static_cast<IdField>(i)) << ", ";
119 } 119 }
120 os << "Flags: "; 120 os << "Flags: ";
121 for ( ; i < BIT_FIELDS_END; ++i) { 121 for ( ; i < BIT_FIELDS_END; ++i) {
122 if (kernel->ref(static_cast<BitField>(i))) 122 if (kernel->ref(static_cast<BitField>(i)))
123 os << g_metas_columns[i].name << ", "; 123 os << g_metas_columns[i].name << ", ";
(...skipping 10 matching lines...) Expand all
134 } 134 }
135 os << "TempFlags: "; 135 os << "TempFlags: ";
136 for ( ; i < BIT_TEMPS_END; ++i) { 136 for ( ; i < BIT_TEMPS_END; ++i) {
137 if (kernel->ref(static_cast<BitTemp>(i))) 137 if (kernel->ref(static_cast<BitTemp>(i)))
138 os << "#" << i - BIT_TEMPS_BEGIN << ", "; 138 os << "#" << i - BIT_TEMPS_BEGIN << ", ";
139 } 139 }
140 return os; 140 return os;
141 } 141 }
142 142
143 } // namespace syncable 143 } // namespace syncable
OLDNEW
« no previous file with comments | « sync/syncable/entry.h ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698