| 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 // Keep this file in sync with the .proto files in this directory. | 5 // Keep this file in sync with the .proto files in this directory. |
| 6 | 6 |
| 7 #include "sync/protocol/proto_enum_conversions.h" | 7 #include "sync/protocol/proto_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 25 matching lines...) Expand all Loading... |
| 36 sync_pb::SyncEnums::PageTransition page_transition) { | 36 sync_pb::SyncEnums::PageTransition page_transition) { |
| 37 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, PageTransition, | 37 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, PageTransition, |
| 38 LINK, CHAIN_END); | 38 LINK, CHAIN_END); |
| 39 switch (page_transition) { | 39 switch (page_transition) { |
| 40 ENUM_CASE(sync_pb::SyncEnums, LINK); | 40 ENUM_CASE(sync_pb::SyncEnums, LINK); |
| 41 ENUM_CASE(sync_pb::SyncEnums, TYPED); | 41 ENUM_CASE(sync_pb::SyncEnums, TYPED); |
| 42 ENUM_CASE(sync_pb::SyncEnums, AUTO_BOOKMARK); | 42 ENUM_CASE(sync_pb::SyncEnums, AUTO_BOOKMARK); |
| 43 ENUM_CASE(sync_pb::SyncEnums, AUTO_SUBFRAME); | 43 ENUM_CASE(sync_pb::SyncEnums, AUTO_SUBFRAME); |
| 44 ENUM_CASE(sync_pb::SyncEnums, MANUAL_SUBFRAME); | 44 ENUM_CASE(sync_pb::SyncEnums, MANUAL_SUBFRAME); |
| 45 ENUM_CASE(sync_pb::SyncEnums, GENERATED); | 45 ENUM_CASE(sync_pb::SyncEnums, GENERATED); |
| 46 ENUM_CASE(sync_pb::SyncEnums, START_PAGE); | 46 ENUM_CASE(sync_pb::SyncEnums, AUTO_TOPLEVEL); |
| 47 ENUM_CASE(sync_pb::SyncEnums, FORM_SUBMIT); | 47 ENUM_CASE(sync_pb::SyncEnums, FORM_SUBMIT); |
| 48 ENUM_CASE(sync_pb::SyncEnums, RELOAD); | 48 ENUM_CASE(sync_pb::SyncEnums, RELOAD); |
| 49 ENUM_CASE(sync_pb::SyncEnums, KEYWORD); | 49 ENUM_CASE(sync_pb::SyncEnums, KEYWORD); |
| 50 ENUM_CASE(sync_pb::SyncEnums, KEYWORD_GENERATED); | 50 ENUM_CASE(sync_pb::SyncEnums, KEYWORD_GENERATED); |
| 51 ENUM_CASE(sync_pb::SyncEnums, CHAIN_START); | 51 ENUM_CASE(sync_pb::SyncEnums, CHAIN_START); |
| 52 ENUM_CASE(sync_pb::SyncEnums, CHAIN_END); | 52 ENUM_CASE(sync_pb::SyncEnums, CHAIN_END); |
| 53 } | 53 } |
| 54 NOTREACHED(); | 54 NOTREACHED(); |
| 55 return ""; | 55 return ""; |
| 56 } | 56 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 ENUM_CASE(sync_pb::SessionTab, TYPE_WEB_FAVICON); | 164 ENUM_CASE(sync_pb::SessionTab, TYPE_WEB_FAVICON); |
| 165 } | 165 } |
| 166 NOTREACHED(); | 166 NOTREACHED(); |
| 167 return ""; | 167 return ""; |
| 168 } | 168 } |
| 169 | 169 |
| 170 #undef ASSERT_ENUM_BOUNDS | 170 #undef ASSERT_ENUM_BOUNDS |
| 171 #undef ENUM_CASE | 171 #undef ENUM_CASE |
| 172 | 172 |
| 173 } // namespace syncer | 173 } // namespace syncer |
| OLD | NEW |