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

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

Issue 395913003: Add server_attachment_metadata field to EntryKernel and sync database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/syncable_columns.h ('k') | sync/test/test_directory_backing_store.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 // Keep this file in sync with entry_kernel.h. 5 // Keep this file in sync with entry_kernel.h.
6 6
7 #include "sync/syncable/syncable_enum_conversions.h" 7 #include "sync/syncable/syncable_enum_conversions.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ENUM_CASE(UNIQUE_POSITION); 156 ENUM_CASE(UNIQUE_POSITION);
157 case UNIQUE_POSITION_FIELDS_END: break; 157 case UNIQUE_POSITION_FIELDS_END: break;
158 } 158 }
159 NOTREACHED(); 159 NOTREACHED();
160 return ""; 160 return "";
161 } 161 }
162 162
163 const char* GetAttachmentMetadataFieldString( 163 const char* GetAttachmentMetadataFieldString(
164 AttachmentMetadataField attachment_metadata_field) { 164 AttachmentMetadataField attachment_metadata_field) {
165 ASSERT_ENUM_BOUNDS(ATTACHMENT_METADATA, 165 ASSERT_ENUM_BOUNDS(ATTACHMENT_METADATA,
166 ATTACHMENT_METADATA, 166 SERVER_ATTACHMENT_METADATA,
167 ATTACHMENT_METADATA_FIELDS_BEGIN, 167 ATTACHMENT_METADATA_FIELDS_BEGIN,
168 ATTACHMENT_METADATA_FIELDS_END - 1); 168 ATTACHMENT_METADATA_FIELDS_END - 1);
169 switch(attachment_metadata_field) { 169 switch(attachment_metadata_field) {
170 ENUM_CASE(ATTACHMENT_METADATA); 170 ENUM_CASE(ATTACHMENT_METADATA);
171 ENUM_CASE(SERVER_ATTACHMENT_METADATA);
171 case ATTACHMENT_METADATA_FIELDS_END: break; 172 case ATTACHMENT_METADATA_FIELDS_END: break;
172 } 173 }
173 NOTREACHED(); 174 NOTREACHED();
174 return ""; 175 return "";
175 } 176 }
176 177
177 const char* GetBitTempString(BitTemp bit_temp) { 178 const char* GetBitTempString(BitTemp bit_temp) {
178 ASSERT_ENUM_BOUNDS(SYNCING, SYNCING, 179 ASSERT_ENUM_BOUNDS(SYNCING, SYNCING,
179 BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1); 180 BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1);
180 switch (bit_temp) { 181 switch (bit_temp) {
181 ENUM_CASE(SYNCING); 182 ENUM_CASE(SYNCING);
182 case BIT_TEMPS_END: break; 183 case BIT_TEMPS_END: break;
183 } 184 }
184 NOTREACHED(); 185 NOTREACHED();
185 return ""; 186 return "";
186 } 187 }
187 188
188 #undef ENUM_CASE 189 #undef ENUM_CASE
189 #undef ASSERT_ENUM_BOUNDS 190 #undef ASSERT_ENUM_BOUNDS
190 191
191 } // namespace syncable 192 } // namespace syncable
192 } // namespace syncer 193 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/syncable_columns.h ('k') | sync/test/test_directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698