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 SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ | 9 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ |
| 10 #define SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ | 10 #define SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 APPS, | 91 APPS, |
| 92 // An app setting from the extension settings API. | 92 // An app setting from the extension settings API. |
| 93 APP_SETTINGS, | 93 APP_SETTINGS, |
| 94 // An extension setting from the extension settings API. | 94 // An extension setting from the extension settings API. |
| 95 EXTENSION_SETTINGS, | 95 EXTENSION_SETTINGS, |
| 96 // App notifications. | 96 // App notifications. |
| 97 APP_NOTIFICATIONS, // Deprecated. | 97 APP_NOTIFICATIONS, // Deprecated. |
| 98 // History delete directives. | 98 // History delete directives. |
| 99 HISTORY_DELETE_DIRECTIVES, | 99 HISTORY_DELETE_DIRECTIVES, |
| 100 // Synced push notifications. | 100 // Synced push notifications. |
| 101 SYNCED_NOTIFICATIONS, // Deprecated. | 101 SYNCED_NOTIFICATIONS, // Deprecated. |
| 102 // Synced Notification app info. | 102 // Synced Notification app info. |
| 103 SYNCED_NOTIFICATION_APP_INFO, // Deprecated. | 103 SYNCED_NOTIFICATION_APP_INFO, // Deprecated. |
| 104 // Custom spelling dictionary. | 104 // Custom spelling dictionary. |
| 105 DICTIONARY, | 105 DICTIONARY, |
| 106 // Favicon images. | 106 // Favicon images. |
| 107 FAVICON_IMAGES, | 107 FAVICON_IMAGES, |
| 108 // Favicon tracking information. | 108 // Favicon tracking information. |
| 109 FAVICON_TRACKING, | 109 FAVICON_TRACKING, |
| 110 // Client-specific metadata, synced before other user types. | 110 // Client-specific metadata, synced before other user types. |
| 111 DEVICE_INFO, | 111 DEVICE_INFO, |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 124 // Distilled articles. | 124 // Distilled articles. |
| 125 ARTICLES, | 125 ARTICLES, |
| 126 // App List items | 126 // App List items |
| 127 APP_LIST, | 127 APP_LIST, |
| 128 // WiFi credentials. Each item contains the information for connecting to one | 128 // WiFi credentials. Each item contains the information for connecting to one |
| 129 // WiFi network. This includes, e.g., network name and password. | 129 // WiFi network. This includes, e.g., network name and password. |
| 130 WIFI_CREDENTIALS, | 130 WIFI_CREDENTIALS, |
| 131 // Supervised user whitelists. Each item contains a CRX ID (like an extension | 131 // Supervised user whitelists. Each item contains a CRX ID (like an extension |
| 132 // ID) and a name. | 132 // ID) and a name. |
| 133 SUPERVISED_USER_WHITELISTS, | 133 SUPERVISED_USER_WHITELISTS, |
| 134 // Arc Package items | |
|
pavely
2016/06/27 18:51:33
nit: Could you add dot ('.') at the end of comment
lgcheng
2016/06/27 19:54:38
Done.
| |
| 135 ARC_PACKAGE, | |
| 134 | 136 |
| 135 // ---- Proxy types ---- | 137 // ---- Proxy types ---- |
| 136 // 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 |
| 137 // 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 |
| 138 // them from normal protocol types. | 140 // them from normal protocol types. |
| 139 | 141 |
| 140 // Tab sync. This is a placeholder type, so that Sessions can be implicitly | 142 // Tab sync. This is a placeholder type, so that Sessions can be implicitly |
| 141 // enabled for history sync and tabs sync. | 143 // enabled for history sync and tabs sync. |
| 142 PROXY_TABS, | 144 PROXY_TABS, |
| 143 FIRST_PROXY_TYPE = PROXY_TABS, | 145 FIRST_PROXY_TYPE = PROXY_TABS, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 355 SYNC_EXPORT bool TypeSupportsOrdering(ModelType model_type); | 357 SYNC_EXPORT bool TypeSupportsOrdering(ModelType model_type); |
| 356 | 358 |
| 357 // Returns root_tag for |model_type| in ModelTypeInfo. | 359 // Returns root_tag for |model_type| in ModelTypeInfo. |
| 358 // Difference with ModelTypeToRootTag(), this just simply return toor_tag in | 360 // Difference with ModelTypeToRootTag(), this just simply return toor_tag in |
| 359 // ModelTypeInfo. | 361 // ModelTypeInfo. |
| 360 SYNC_EXPORT const char* ModelTypeToTag(ModelType model_type); | 362 SYNC_EXPORT const char* ModelTypeToTag(ModelType model_type); |
| 361 | 363 |
| 362 } // namespace syncer | 364 } // namespace syncer |
| 363 | 365 |
| 364 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ | 366 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ |
| OLD | NEW |