Chromium Code Reviews| 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 // Enumerate the various item subtypes that are supported by sync. | 5 // Enumerate the various item subtypes that are supported by sync. |
| 6 // Each sync object is expected to have an immutable object type. | 6 // Each sync object is expected to have an immutable object type. |
| 7 // An object's type is inferred from the type of data it holds. | 7 // An object's type is inferred from the type of data it holds. |
| 8 | 8 |
| 9 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ | 9 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ |
| 10 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ | 10 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 // App List items | 125 // App List items |
| 126 APP_LIST, | 126 APP_LIST, |
| 127 // WiFi credentials. Each item contains the information for connecting to one | 127 // WiFi credentials. Each item contains the information for connecting to one |
| 128 // WiFi network. This includes, e.g., network name and password. | 128 // WiFi network. This includes, e.g., network name and password. |
| 129 WIFI_CREDENTIALS, | 129 WIFI_CREDENTIALS, |
| 130 // Supervised user whitelists. Each item contains a CRX ID (like an extension | 130 // Supervised user whitelists. Each item contains a CRX ID (like an extension |
| 131 // ID) and a name. | 131 // ID) and a name. |
| 132 SUPERVISED_USER_WHITELISTS, | 132 SUPERVISED_USER_WHITELISTS, |
| 133 // Arc Package items. | 133 // Arc Package items. |
| 134 ARC_PACKAGE, | 134 ARC_PACKAGE, |
| 135 // Printer device information. | |
| 136 PRINTER, | |
|
Nicolas Zea
2016/09/07 00:18:04
nit: the enum is typically plural, so this should
skau
2016/09/09 19:02:15
Done.
| |
| 135 | 137 |
| 136 // ---- Proxy types ---- | 138 // ---- Proxy types ---- |
| 137 // Proxy types are excluded from the sync protocol, but are still considered | 139 // Proxy types are excluded from the sync protocol, but are still considered |
| 138 // real user types. By convention, we prefix them with 'PROXY_' to distinguish | 140 // real user types. By convention, we prefix them with 'PROXY_' to distinguish |
| 139 // them from normal protocol types. | 141 // them from normal protocol types. |
| 140 | 142 |
| 141 // Tab sync. This is a placeholder type, so that Sessions can be implicitly | 143 // Tab sync. This is a placeholder type, so that Sessions can be implicitly |
| 142 // enabled for history sync and tabs sync. | 144 // enabled for history sync and tabs sync. |
| 143 PROXY_TABS, | 145 PROXY_TABS, |
| 144 FIRST_PROXY_TYPE = PROXY_TABS, | 146 FIRST_PROXY_TYPE = PROXY_TABS, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 347 | 349 |
| 348 // Returns true if |model_type| supports parent-child hierarchy or entries. | 350 // Returns true if |model_type| supports parent-child hierarchy or entries. |
| 349 bool TypeSupportsHierarchy(ModelType model_type); | 351 bool TypeSupportsHierarchy(ModelType model_type); |
| 350 | 352 |
| 351 // Returns true if |model_type| supports ordering of sibling entries. | 353 // Returns true if |model_type| supports ordering of sibling entries. |
| 352 bool TypeSupportsOrdering(ModelType model_type); | 354 bool TypeSupportsOrdering(ModelType model_type); |
| 353 | 355 |
| 354 } // namespace syncer | 356 } // namespace syncer |
| 355 | 357 |
| 356 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ | 358 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ |
| OLD | NEW |