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/internal_api/public/base/model_type.h" | 5 #include "sync/internal_api/public/base/model_type.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 {PASSWORDS, "PASSWORD", "passwords", "Passwords", | 53 {PASSWORDS, "PASSWORD", "passwords", "Passwords", |
54 sync_pb::EntitySpecifics::kPasswordFieldNumber, 4}, | 54 sync_pb::EntitySpecifics::kPasswordFieldNumber, 4}, |
55 {AUTOFILL_PROFILE, "AUTOFILL_PROFILE", "autofill_profiles", | 55 {AUTOFILL_PROFILE, "AUTOFILL_PROFILE", "autofill_profiles", |
56 "Autofill Profiles", sync_pb::EntitySpecifics::kAutofillProfileFieldNumber, | 56 "Autofill Profiles", sync_pb::EntitySpecifics::kAutofillProfileFieldNumber, |
57 5}, | 57 5}, |
58 {AUTOFILL, "AUTOFILL", "autofill", "Autofill", | 58 {AUTOFILL, "AUTOFILL", "autofill", "Autofill", |
59 sync_pb::EntitySpecifics::kAutofillFieldNumber, 6}, | 59 sync_pb::EntitySpecifics::kAutofillFieldNumber, 6}, |
60 {AUTOFILL_WALLET_DATA, "AUTOFILL_WALLET", "autofill_wallet", | 60 {AUTOFILL_WALLET_DATA, "AUTOFILL_WALLET", "autofill_wallet", |
61 "Autofill Wallet", sync_pb::EntitySpecifics::kAutofillWalletFieldNumber, | 61 "Autofill Wallet", sync_pb::EntitySpecifics::kAutofillWalletFieldNumber, |
62 34}, | 62 34}, |
63 {AUTOFILL_WALLET_METADATA, "AUTOFILL_WALLET_METADATA", | 63 {AUTOFILL_WALLET_METADATA, "WALLET_METADATA", |
64 "autofill_wallet_metadata", "Autofill Wallet Metadata", | 64 "autofill_wallet_metadata", "Autofill Wallet Metadata", |
65 sync_pb::EntitySpecifics::kWalletMetadataFieldNumber, 35}, | 65 sync_pb::EntitySpecifics::kWalletMetadataFieldNumber, 35}, |
66 {THEMES, "THEME", "themes", "Themes", | 66 {THEMES, "THEME", "themes", "Themes", |
67 sync_pb::EntitySpecifics::kThemeFieldNumber, 7}, | 67 sync_pb::EntitySpecifics::kThemeFieldNumber, 7}, |
68 {TYPED_URLS, "TYPED_URL", "typed_urls", "Typed URLs", | 68 {TYPED_URLS, "TYPED_URL", "typed_urls", "Typed URLs", |
69 sync_pb::EntitySpecifics::kTypedUrlFieldNumber, 8}, | 69 sync_pb::EntitySpecifics::kTypedUrlFieldNumber, 8}, |
70 {EXTENSIONS, "EXTENSION", "extensions", "Extensions", | 70 {EXTENSIONS, "EXTENSION", "extensions", "Extensions", |
71 sync_pb::EntitySpecifics::kExtensionFieldNumber, 9}, | 71 sync_pb::EntitySpecifics::kExtensionFieldNumber, 9}, |
72 {SEARCH_ENGINES, "SEARCH_ENGINE", "search_engines", "Search Engines", | 72 {SEARCH_ENGINES, "SEARCH_ENGINE", "search_engines", "Search Engines", |
73 sync_pb::EntitySpecifics::kSearchEngineFieldNumber, 10}, | 73 sync_pb::EntitySpecifics::kSearchEngineFieldNumber, 10}, |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 bool TypeSupportsHierarchy(ModelType model_type) { | 732 bool TypeSupportsHierarchy(ModelType model_type) { |
733 // TODO(stanisc): crbug/438313: Should this also include TOP_LEVEL_FOLDER? | 733 // TODO(stanisc): crbug/438313: Should this also include TOP_LEVEL_FOLDER? |
734 return model_type == BOOKMARKS; | 734 return model_type == BOOKMARKS; |
735 } | 735 } |
736 | 736 |
737 bool TypeSupportsOrdering(ModelType model_type) { | 737 bool TypeSupportsOrdering(ModelType model_type) { |
738 return model_type == BOOKMARKS; | 738 return model_type == BOOKMARKS; |
739 } | 739 } |
740 | 740 |
741 } // namespace syncer | 741 } // namespace syncer |
OLD | NEW |