OLD | NEW |
1 // Copyright 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 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ |
6 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ | 6 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <ostream> | 10 #include <ostream> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Distilled articles. | 120 // Distilled articles. |
121 ARTICLES, | 121 ARTICLES, |
122 // App List items | 122 // App List items |
123 APP_LIST, | 123 APP_LIST, |
124 // WiFi credentials. Each item contains the information for connecting to one | 124 // WiFi credentials. Each item contains the information for connecting to one |
125 // WiFi network. This includes, e.g., network name and password. | 125 // WiFi network. This includes, e.g., network name and password. |
126 WIFI_CREDENTIALS, | 126 WIFI_CREDENTIALS, |
127 // Supervised user whitelists. Each item contains a CRX ID (like an extension | 127 // Supervised user whitelists. Each item contains a CRX ID (like an extension |
128 // ID) and a name. | 128 // ID) and a name. |
129 SUPERVISED_USER_WHITELISTS, | 129 SUPERVISED_USER_WHITELISTS, |
130 // Arc Package items. | 130 // ARC Package items. |
131 ARC_PACKAGE, | 131 ARC_PACKAGE, |
132 // Printer device information. | 132 // Printer device information. |
133 PRINTERS, | 133 PRINTERS, |
134 // Reading list items. | 134 // Reading list items. |
135 READING_LIST, | 135 READING_LIST, |
136 | 136 |
137 // ---- Proxy types ---- | 137 // ---- Proxy types ---- |
138 // Proxy types are excluded from the sync protocol, but are still considered | 138 // Proxy types are excluded from the sync protocol, but are still considered |
139 // real user types. By convention, we prefix them with 'PROXY_' to distinguish | 139 // real user types. By convention, we prefix them with 'PROXY_' to distinguish |
140 // them from normal protocol types. | 140 // them from normal protocol types. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 // Returns true if |model_type| supports parent-child hierarchy or entries. | 349 // Returns true if |model_type| supports parent-child hierarchy or entries. |
350 bool TypeSupportsHierarchy(ModelType model_type); | 350 bool TypeSupportsHierarchy(ModelType model_type); |
351 | 351 |
352 // Returns true if |model_type| supports ordering of sibling entries. | 352 // Returns true if |model_type| supports ordering of sibling entries. |
353 bool TypeSupportsOrdering(ModelType model_type); | 353 bool TypeSupportsOrdering(ModelType model_type); |
354 | 354 |
355 } // namespace syncer | 355 } // namespace syncer |
356 | 356 |
357 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ | 357 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ |
OLD | NEW |